//  配置项



/**
 * dialogConfig 前提是ifDialog 为true, 默认false
 *
 * dialogConfig type 默认 input, 可选项[image, password, checkbox]
 * select 提供了data则指定的url失效
 *
 * select 单选 (type = 'select')
 * data 类型 data: [
              { value: -1, name: '全部' },
              { value: 'false', name: '访问人员' },
              { value: 'true', name: '管理人员' }
            ]

 * url类型  url: {
                    api: '/companys/get_all',
                    method: 'get',
                    map: {
                      value: 'companyName',
                      name: 'id'
                    }
                  },
 *
 * 2024.5.21 新增多选
 * select 多选 (type = 'select' multiple = true(必填))
 *
 * 所有字段的default值配置的数据在默认值为空时生效
 * 字段的label属性在没有配置时默认为该字段名(Object时), 在key-value 时接受的值为label值,
 * btn style 定义按钮的样式, 默认可选element-ui的btn type样式 primary / success / warning / danger / info / text
 *
 *
 * 2025/4/30 新增表头操作选项, 非dialog的数据不写dialog 参数, 可以选择api 查询条件， use_filter 会使用filter的查询条件来走接口,
 * 也可以使用排除项，来去除filter中的参数来走接口, ignore_filter:[key1，key2], 否则使用所有filter数据
 * 新增时间查询区间，注意要写清楚start, end 参数，否则无效
 *
 * 2025/5/1 新增时间段查询
 * 所有的时间段查询条件的key 注意时间段 的key不是原本的key,是 ${key}_start, ${key}_end, _start是开始时间，_end 是结束时间
 *
 *   这是管理员的操作表
 *
 * api 方式 restful方式, 注意只有get请求携带params, 其他请求使用路径方式, json 格式传参
 *
 * 2025/5/10 新增表单显示依赖条件[原来可以使用showVerfiy 获取当前数据来进行验证], 现在新增依赖当前dialog元素值控制是否显示
 * 如[父元素 是 select 类型， 该父元素的值改变时，可以通过函数foreign_show：是一个列表
 *
 * select 在搜索上且是api 时
 * @example
 * {
              default: '请选择用户',
              required: false,
              type: 'select',
              // data:[
              //   {value:'cmx3', name:'3'},
              //   {value:'cmx2', name:'2'},
              //   {value:'cmx1', name:'1'},
              // ],
              url: {
                api: '/SysUser/all',
                method: 'get',
                map: {
                  value: 'user_name', // 注意是key-value 的形式不是name-value的形式
                  key: 'user_id'
                }
              },
              key: 'user_info',
              placeholder: '请输入用户名',
            },
 *
 *
 * 2025/5/12 新增多级选择, 用户dialog
 * @example
 * type:'cascader', 固定
 * props:{multiple: true, expandTrigger: 'hover'}  用于控制前端选择的情况，multiple表示可以多选，expandTrigger展示方式

 * data:[]// 如果有data有数据则api 的数据失效
 *
 *
 * [
 * key:显示条件函数[判断成功即显示]
 * ]]
 *
 *
 * /**
 * 2025/7/11 新增对应table 操作按钮需要某一条数据需要特别展示, 可以自定义组件， 在操作的btn 中引用此组件, 注意ifComponent 一定要为true
 * @example
 *  {
      label:"详情",
      style:'warning',
      ifComponent:true,
      component_dialog:{
        title:"选品-竞品listing分析",
        component:import("../../components/CustomComponents/compete_dialog.vue")
      }
   }
 *
 * /**
 * 2025/9/23 新增echarts组件, 使用组件common_echarts.vue, 需要为common_echarts.vue 传递url,以及chartOptions
 *
 *
 * /**
 * 2025/10/31 新增对表格选择项的传递, 注意所有使用多选的table 在携带选择项返回时http要使用post请求
 * use_table_select为返回的匹配数据
 *
 * 是否使用选中的数据进行参数传递, 只在tableColumn select 为true时生效
 * 如果使用，map中的key 表示要传递到后端的key，value 表示要表格scope中的key, 最终的数据是
 * {key:
 *  [
 *   {value[0]:scope.row[0].value[0], value[1]:scope.row[0].value[1], ...},
 *   {value[0]:scope.row[1].value[0], value[1]:scope.row[1].value[1], ...}
 *  ]
 * }
 * @example 会以post请求的方式传递, model的参数必然包括 {ids:[{id:1, msg:'1'},{id:2, msg:'2'}]}
 * use_select_item:{
 *              map:{
 *                 key:'ids',
 *                value:['id', "msg"]
 *             }
 *       },
 *
 *
 * /**
 * 2025/11/1 新增 table 字段数据备份/计算备份
 *  showChoose 允许使用一个新的key代替原来的占位数据, 并且让这个key的值是占位数据
 *  @example 在后端返回的数据里有一个key是order_id, 但是现在需要额外备份这个数据,可以使用新的变量order_code 来代替, 值是原理order_id的值
 *
 * table 表格数据接受一个calc_column函数，展示结果是calc_column的返回值, 不影响原来row.key的真实数据
 * 可以使用showChoose 来定义一个新的变量来接收这个值, 最终这个值会以新key的形式 存在row里面
 *
 *
 *
 *
 */


// let uP = Number(localStorage.getItem("userPermission"))


export default {
  view: [
    {
      name: '谷仓库存分析',
      tableName: 'Product_new',
      data: {
        TopConfig: {
          data: [
            {
              default: '',
              required: false,
              type: 'text',
              key: 'product_sku',
              placeholder: '请输入谷仓商品SKU',
            },
            {
              type: 'input-group',
              width: 400,
              value: [
                {
                  type: 'select', key: 'select', default: 0, placeholder: '请选择', data: [
                    { name: '请选择可售类型', value: 0 },
                    { name: '总可售天', value: 1 },
                    { name: '国内在途可售天', value: 2 },
                    { name: '国内在仓可售天', value: 3 },
                    { name: '海外在途可售天', value: 4 },
                    { name: '海外在仓可售天', value: 5 },
                    { name: '未售出时长(天)', value: 7 },
                    { name: '退货率', value: 8 },
                    { name: '海外在仓总数', value: 9 },
                    { name: '海外在途总数', value: 10 },
                  ]
                },
                { type: 'input', key: 'value1', default: '', placeholder: '最小值', use_between: true },
                { type: 'input', key: 'value2', default: '', placeholder: '最大值' },
              ]
            },



            {
              required: false,
              type: 'select',
              default: 0,
              placeholder: '销售趋势',
              data: [
                { name: '全部', value: 0 },
                { name: '新品(未出单)', value: 'new' },
                { name: '非新品', value: 'old' },
                { name: '持续上升', value: 'up_continue' },
                { name: '持续下降', value: 'down_continue' },
                { name: '阶段上升', value: 'up_variation' },
                { name: '阶段下降', value: 'down_variation' },

              ],
              key: 'strategy',
              placeholder: '销售趋势',
            },

            {
              type: 'input-group',
              width: 300,
              value: [
                {
                  default: 0, required: false, type: 'select', data:
                    [
                      {
                        value: 0, name: '全部人员', "inner_change": true,
                        replace_inner:
                        {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            data: [],
                            key: 'person_develop_id',
                            placeholder: '请选择人员',
                          },
                        }
                      },
                      {
                        value: 1, name: '选品人', "inner_change": true, replace_inner: {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            url: {
                              api: '/SysUser/person_develop_id/all',
                              method: 'get',
                              map: {
                                value: 'user_name',
                                key: 'user_id'
                              }
                            },
                            key: 'person_develop_id',
                            placeholder: '请选择开发人员',
                          },
                        }
                      },
                      {
                        value: 2, name: '运营人', "inner_change": true, replace_inner: {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            url: {
                              api: '/SysUser//person_seller_id/all',
                              method: 'get',
                              map: {
                                value: 'user_name',
                                key: 'user_id'
                              }
                            },
                            key: 'person_develop_id',
                            placeholder: '请选择开发人员',
                          },
                        }
                      },
                    ],
                  key: 'user_type',
                  placeholder: '请选择人员类型',
                },

                {
                  default: '', required: false, type: 'select',
                  placeholder: '请选择人员',
                  data: [],
                  key: 'person_develop_id',
                  placeholder: '请选择开发人员',
                },

              ]
            },

            {
              default: ["last_sale_time", "desc"],
              required: false,
              type: 'cascader',
              key: 'order_by',
              props: {},
              placeholder: '请选择排序方式',
              data: [{
                label: '最后出单日期',
                value: 'last_sale_time',
                children: [{
                  value: 'asc',
                  label: '从远到近'
                },
                {
                  value: 'desc',
                  label: '从近到远'
                }]
              },
              {
                label: '未售出时长',
                value: 'last_sale_time',
                children: [{
                  value: 'asc',
                  label: '从远到近'
                },
                {
                  value: 'desc',
                  label: '从近到远'
                }]
              },
              {
                label: '3个月销量',
                value: 'day_90',
                children: [{
                  value: 'asc',
                  label: '从小到大'
                },
                {
                  value: 'desc',
                  label: '从大到小'
                }]
              },
              {
                label: '3个月退货量',
                value: 'day_90_r',
                children: [{
                  value: 'asc',
                  label: '从小到大'
                },
                {
                  value: 'desc',
                  label: '从大到小'
                }]
              },
              {
                label: '退货率',
                value: 'day_90_r_rate',
                children: [{
                  value: 'asc',
                  label: '从小到大'
                },
                {
                  value: 'desc',
                  label: '从大到小'
                }]
              },
              {
                label: '可售天数',
                value: 'can_sell_day',
                children: [{
                  value: 'asc',
                  label: '从小到大'
                },
                {
                  value: 'desc',
                  label: '从大到小'
                }]
              },
              {
                label: '库龄',
                value: 'can_sell_day',
                children: [{
                  value: 'asc',
                  label: '从小到大'
                },
                {
                  value: 'desc',
                  label: '从大到小'
                }]
              },
              {
                label: '月销量',
                value: 'day_30',
                children: [{
                  value: 'asc',
                  label: '从小到大'
                },
                {
                  value: 'desc',
                  label: '从大到小'
                }]
              },
              {
                label: '日均销量',
                value: 'day_30_aver',
                children: [{
                  value: 'asc',
                  label: '从小到大'
                },
                {
                  value: 'desc',
                  label: '从大到小'
                }]
              }

              ]
            }
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/ProductForecastInfo/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/ProductForecastInfo/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '主键 ID', key: 'id', isShow: false, type: 'text' },
            {
              label: '谷仓商品', effect: 'dark', key: 'product_sku', isShow: true, type: 'tag', fixed: true, calc_tag_color: (item, row) => {
                if (row.need_add == 2) {
                  return "warning"
                }
                if (row.need_add == 1) {
                  return "danger"
                }
                else {
                  return ""
                }
              },
              after: {
                type: 'text',
                text: row => { return row.describe?.length > 0 ? '标记:' + row.describe : '' },
                style: 'color:#409eff;cursor:pointer;padding-left:3px; margin-top:10px',
                use_tablebtn_event: {
                  label: '添加标记',
                  style: 'primary',
                  ifDialog: false,
                },
              }

            },
            {
              label: '商品名称', key: 'product_title_cn', isShow: true, type: 'text', fixed: true,
              after: {
                text: row => { return '设置标签' },
                style: 'color:#409eff;cursor:pointer;padding-left:3px',
                use_tablebtn_event: {
                  label: '设置标签',
                  style: 'primary',
                  ifDialog: true,
                  dialogConfig: [
                    {
                      default: '',
                      placeholder: '请输入sku',
                      label: 'sku',
                      key: 'product_sku',
                      required: true,
                      isShow: true,
                      disabled: true
                    },
                    {
                      default: [],
                      placeholder: '请选择标签',
                      label: '选择标签',
                      key: 'sku_tags',
                      required: false,
                      isShow: true,
                      type: 'select',
                      multiple: true,
                      data: [{
                        value: 1,
                        name: '淘汰商品'
                      }, {
                        value: 2,
                        name: '不计算断货'
                      }
                      ]
                    },
                    // {
                    //   default: '',
                    //   placeholder: '是否系统用户',
                    //   label: '系统用户?',
                    //   type: "select",
                    //   key: 'ifOperator',
                    //   data: [{ value: true, name: '系统用户' }, { value: false, name: '访问人员' }],
                    //   required: true,
                    //   isShow: true,
                    // },
                    {
                      default: '',
                      key: 'id',
                      required: true,
                      isShow: false,
                    }
                  ],
                  url: {
                    method: 'post',
                    api: '/ProductForecastInfo/update',
                    path: []
                  }
                },
              }
            },
            {
              label: '最后下单时间', key: 'last_sale_time', isShow: true, type: 'date',
              after: {
                text: row => { return '添加标记' },
                style: 'color:#409eff;cursor:pointer;padding-left:3px',
                use_tablebtn_event: {
                  label: '添加标记',
                  style: 'primary',
                  ifDialog: true,
                  dialogConfig: [
                    {
                      default: '',
                      placeholder: 'sku',
                      label: 'sku',
                      key: 'product_sku',
                      required: true,
                      isShow: true,
                      disabled: true
                    },
                    {
                      default: '',
                      placeholder: 'describe',
                      label: '自定义标记',
                      key: 'describe',
                      required: false,
                      isShow: true,
                    },
                    // {
                    //   default: '',
                    //   placeholder: '是否系统用户',
                    //   label: '系统用户?',
                    //   type: "select",
                    //   key: 'ifOperator',
                    //   data: [{ value: true, name: '系统用户' }, { value: false, name: '访问人员' }],
                    //   required: true,
                    //   isShow: true,
                    // },
                    {
                      default: '',
                      key: 'id',
                      required: true,
                      isShow: false,
                    }
                  ],
                  url: {
                    method: 'post',
                    api: '/ProductForecastInfo/update/describe',
                    path: []
                  }
                },
              }
            },
            // { label: '最后订单号', key: 'last_order', isShow: true, type:'text'},
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
            { label: '未售出时长', key: 'hours_since_last_sale', isShow: true, type: 'text' },
            // { label: '待发货数量', key: 'redis_online', isShow: true, type:'text'},
            {
              label: '退货次数', key: 'return_info', isShow: true, type: 'row_many', column: 1, map: [
                {
                  label: "90天售出数",
                  key: 'day_90'
                },
                {
                  label: "90天退货数",
                  key: 'day_90_r'
                },
                {
                  label: "90天退货率",
                  key: 'day_90_r_rate'
                },
              ]
            },
            {
              label: '断货次数', key: 'out_stock', isShow: true, type: 'row_many', column: 1, map: [
                {
                  label: "本月断货",
                  key: 'this_month_cnt'
                },
                {
                  label: "上月断货",
                  key: 'last_month_cnt'
                }
              ],
              calc_column: (item, row) => (row?.calc_stock == false ? '已开启不计算断货' : false)
            },
            {
              label: '建议补货', key: 'need_info', isShow: true, type: 'row_many', column: 1, map: [
                // {label:'补半个月', key:'need_half'},
                { label: '全部可用', key: 'all' },
                { label: '海外在仓合计', key: 'origin_inventory' },
                { label: '海外在途合计', key: 'origin_wait' },
                { label: '滨州仓合计', key: 'yc_count' },
                { label: '建议补货数量', key: 'need_count', style: "font-weight: bold;" }
              ]
            },
            {
              label: '选品人', key: 'person_develop_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_develop_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_develop_id',
            },
            {
              label: '运营人', key: 'person_seller_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_seller_id',
            },
            { label: '可售天数', key: 'can_sell_day', isShow: true, type: 'text' },
            {
              label: '售出分析', key: 'sall_rate_info', minWidth: 350, isShow: true, type: 'row_many', column: 2, map: [
                [{
                  label: '7天售出',
                  key: 'day_7'
                }, {
                  label: '14天售出',
                  key: 'day_14'
                }, {
                  label: '30天售出',
                  key: 'day_30'
                },
                { key: 'msg', label: '备注', calc_show: (item) => (item.use_stock == true) },

                {
                  label: '60天售出',
                  key: 'day_60',
                  calc_show: (item) => (item.use_stock != true)
                }, {
                  label: '90天售出',
                  key: 'day_90',
                  calc_show: (item) => (item.use_stock != true)

                }],
                [{
                  label: '每天均售',
                  key: 'day_7_aver'
                },

                {
                  label: '每天均售',
                  key: 'day_14_aver'
                },

                {
                  label: '每天均售',
                  key: 'day_30_aver'
                },

                {
                  label: '每天均售',
                  key: 'day_60_aver',
                  calc_show: (item) => (item.use_stock != true)
                }, {
                  label: '每天均售',
                  key: 'day_90_aver',
                  calc_show: (item) => (item.use_stock != true)
                }]
              ]
            },

            {
              label: '美南仓', isShow: true, key: 'ussc_dict', minWidth: 400, type: 'row_many', calc_count: (item) => { if (item.area_calc) { return 3 } },
              column: 3, map: [
                [
                  { key: 'area_7', label: '7天售出' },
                  { key: 'area_14', label: '14天售出' },
                  { key: 'area_30', label: '30天售出' },
                  { key: 'area_signal_rate', label: '每天均售' },
                ],
                [
                  { key: 'area_inventory', label: '在库' },
                  { key: 'area_wait', label: '在途' },
                  { key: "area_all", label: '全部可用' },
                  // {key:'area_half', label:'补货(半个月)',calc_show:(item)=>(item.area_calc==true)},

                  { key: 'area_info', label: '备注', calc_show: (item) => (item.area_calc == false) },
                ],
                [
                  { key: 'area_inventory_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_wait_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_all_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_month', blod: true, style: "font-weight: bold;", label: '建议补货', calc_show: (item) => (item.area_calc == true) },
                ]
              ]
            },

            {
              label: '美东仓', isShow: true, key: 'usea_dict', minWidth: 400, type: 'row_many', calc_count: (item) => { if (item.area_calc) { return 3 } },
              column: 3, map: [
                [
                  { key: 'area_7', label: '7天售出' },
                  { key: 'area_14', label: '14天售出' },
                  { key: 'area_30', label: '30天售出' },
                  { key: 'area_signal_rate', label: '每天均售' },
                ],
                [
                  { key: 'area_inventory', label: '在库' },
                  { key: 'area_wait', label: '在途' },
                  { key: "area_all", label: '全部可用' },
                  // {key:'area_half', label:'补货(半个月)',calc_show:(item)=>(item.area_calc==true)},
                  { key: 'area_info', label: '备注', calc_show: (item) => (item.area_calc == false) },
                ],
                [
                  { key: 'area_inventory_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_wait_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_all_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_month', style: "font-weight: bold;", label: '建议补货', calc_show: (item) => (item.area_calc == true) },
                ]
              ]
            },

            {
              label: '美西仓', isShow: true, key: 'uswe_dict', minWidth: 400, type: 'row_many', calc_count: (item) => { if (item.area_calc) { return 3 } },
              column: 3, map: [
                [
                  { key: 'area_7', label: '7天售出' },
                  { key: 'area_14', label: '14天售出' },
                  { key: 'area_30', label: '30天售出' },
                  { key: 'area_signal_rate', label: '每天均售' },
                ],
                [
                  { key: 'area_inventory', label: '在库' },
                  { key: 'area_wait', label: '在途' },
                  { key: "area_all", label: '全部可用' },
                  // {key:'area_half', label:'补货(半个月)',calc_show:(item)=>(item.area_calc==true)},
                  { key: 'area_info', label: '备注', calc_show: (item) => (item.area_calc == false) },
                ],
                [
                  { key: 'area_inventory_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_wait_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_all_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_month', style: "font-weight: bold;", label: '建议补货', calc_show: (item) => (item.area_calc == true) },
                ]
              ]
            },
            {
              label: '滨州仓', key: 'yc_dict', type: 'row_many', column: 1, isShow: true, map: [
                { key: "actual_usable_inventory_qty", label: '可售(含待出库)' },
                { key: 'pi_pending_qty', label: '待上架' },
                { key: 'pi_purchase_onway_qty', label: '采购在途' },
                { key: 'yc_count', label: '滨州仓合计' },
              ]
            },

            {
              label: '计算售率', key: 'calc_rate', minWidth: 200, isShow: true, type: 'row_many', column: 1, map: [
                [{
                  label: '最终计算售率',
                  key: 'signal_rate'
                },
                {
                  label: '7天计算售率',
                  key: 'day_7_rate'
                }, {
                  label: '14天计算售率',
                  key: 'day_14_rate'
                }, {
                  label: '30天计算售率',
                  key: 'day_30_rate'
                }],
              ]
            }
          ],
          btn: [



          ],
        },
        url: {
          method: 'get',
          api: '/ProductForecastInfo/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

    // 补货20 的谷仓库存分析
    // {
    //   name:'谷仓库存分析',
    //   tableName: 'Product',
    //   data: {
    //     TopConfig: {
    //       data: [
    //          {
    //           default: '',
    //           required: false,
    //           type: 'text',
    //           key: 'product_sku',
    //           placeholder: '请输入谷仓商品SKU',
    //         },
    //         {
    //           type:'input-group',
    //           width:400,
    //           value:[
    //                 {
    //                     type: 'select', key: 'select', default: 0, placeholder: '请选择', data: [
    //                     { name: '请选择可售类型', value: 0 },
    //                     { name: '总可售天', value: 1 },
    //                     { name: '国内在途可售天', value: 2 },
    //                     { name: '国内在仓可售天', value: 3 },
    //                     { name: '海外在途可售天', value: 4 },
    //                     { name: '海外在仓可售天', value: 5 },
    //                     { name: '未售出时长(天)', value: 7 },
    //                     {name:'退货率', value:8},
    //                   ]
    //                 },
    //                 { type: 'input', key: 'value1', default: '', placeholder: '最小值', use_between: true },
    //                 { type: 'input', key: 'value2', default: '', placeholder: '最大值' },
    //             ]
    //         },

    //         {
    //           required: false,
    //           type: 'select',
    //           default: 0,
    //           placeholder: '销售趋势',
    //           data: [
    //                     { name: '全部', value: 0 },
    //                     { name: '持续上升', value: 'up_continue' },
    //                     { name: '持续下降', value: 'down_continue' },
    //                     { name: '阶段上升', value: 'up_variation' },
    //                     { name: '阶段下降', value: 'down_variation' }
    //           ],
    //           key: 'strategy',
    //           placeholder: '销售趋势',
    //         },

    //          {
    //           type:'input-group',
    //           width:300,
    //           value:[
    //           {   default: 0,required: false,type: 'select',data:
    //             [
    //                 {value:0, name:'全部人员',  "inner_change":true,
    //                   replace_inner:
    //                   {
    //                   key:'person_develop_id',
    //                   data:{
    //                       default: '',required: false,type: 'select',
    //                       placeholder:'请选择人员',
    //                       data:[],
    //                       key: 'person_develop_id',
    //                       placeholder: '请选择人员',},
    //                   }
    //               },
    //                 {value:1, name:'选品人', "inner_change":true, replace_inner:{
    //                   key:'person_develop_id',
    //                   data:{
    //               default: '',required: false,type: 'select',
    //               placeholder:'请选择人员',
    //               url: {
    //                 api: '/SysUser/person_develop_id/all',
    //                 method: 'get',
    //                 map: {
    //                   value: 'user_name',
    //                   key: 'user_id'
    //                 }
    //               },
    //           key: 'person_develop_id',
    //           placeholder: '请选择开发人员',
    //         },
    //                 }},
    //                 {value:2, name:'运营人', "inner_change":true, replace_inner:{
    //                   key:'person_develop_id',
    //                   data:{
    //               default: '',required: false,type: 'select',
    //               placeholder:'请选择人员',
    //               url: {
    //                 api: '/SysUser//person_seller_id/all',
    //                 method: 'get',
    //                 map: {
    //                   value: 'user_name',
    //                   key: 'user_id'
    //                 }
    //               },
    //           key: 'person_develop_id',
    //           placeholder: '请选择开发人员',
    //         },
    //                 }},
    //               ],
    //               key: 'user_type',
    //               placeholder: '请选择人员类型',
    //             },

    //             {
    //               default: '',required: false,type: 'select',
    //               placeholder:'请选择人员',
    //               data:[],
    //           key: 'person_develop_id',
    //           placeholder: '请选择开发人员',
    //         },

    //           ]
    //         },

    //         {
    //           default: ["last_sale_time","desc"],
    //           required: false,
    //           type:'cascader',
    //           key: 'order_by',
    //           props:{},
    //           placeholder: '请选择排序方式',
    //           data: [{
    //             label: '最后出单日期',
    //             value:'last_sale_time',
    //             children: [{
    //               value: 'asc',
    //               label: '从远到近'},
    //               {
    //               value: 'desc',
    //               label: '从近到远'}]
    //           },
    //           {
    //             label:'未售出时长',
    //             value:'last_sale_time',
    //             children: [{
    //               value: 'asc',
    //               label: '从远到近'},
    //               {
    //               value: 'desc',
    //               label: '从近到远'}]
    //           },
    //           {
    //             label:'3个月销量',
    //             value:'day_90',
    //             children: [{
    //               value: 'asc',
    //               label: '从小到大'},
    //               {
    //               value: 'desc',
    //               label: '从大到小'}]
    //           },
    //           {
    //             label:'3个月退货量',
    //             value:'day_90_r',
    //             children: [{
    //               value: 'asc',
    //               label: '从小到大'},
    //               {
    //               value: 'desc',
    //               label: '从大到小'}]
    //           },
    //           {
    //             label:'退货率',
    //             value:'day_90_r_rate',
    //             children: [{
    //               value: 'asc',
    //               label: '从小到大'},
    //               {
    //               value: 'desc',
    //               label: '从大到小'}]
    //           },
    //           {
    //             label:'可售天数',
    //             value:'can_sell_day',
    //             children: [{
    //               value: 'asc',
    //               label: '从小到大'},
    //               {
    //               value: 'desc',
    //               label: '从大到小'}]
    //           },
    //           {
    //             label:'库龄',
    //             value:'can_sell_day',
    //             children: [{
    //               value: 'asc',
    //               label: '从小到大'},
    //               {
    //               value: 'desc',
    //               label: '从大到小'}]
    //           },
    //           {
    //             label:'月销量',
    //             value:'day_30',
    //             children: [{
    //               value: 'asc',
    //               label: '从小到大'},
    //               {
    //               value: 'desc',
    //               label: '从大到小'}]
    //           },
    //           {
    //             label:'日均销量',
    //             value:'day_30_aver',
    //             children: [{
    //               value: 'asc',
    //               label: '从小到大'},
    //               {
    //               value: 'desc',
    //               label: '从大到小'}]
    //           }

    //         ]}
    //       ],
    //       btn: [
    //         // 搜索按钮
    //         {
    //           isShow: true,
    //           label: '搜索',
    //           type: 'search',
    //           url: {
    //             method: 'get',
    //             api: '/ProductForecastInfo/query',
    //             path: [
    //               { key: 'page', index: 1, required: true },
    //               { key: 'pagesize', index: 2, required: true }
    //             ],
    //             params: [
    //             ]
    //           }
    //         },

    //         {
    //           isShow: true,
    //           label: '导出',
    //           style: 'success',
    //           use_filter: true,
    //           download: true,
    //           url: {
    //             method: 'get',
    //             api: '/ProductForecastInfo/export/excel'
    //           }
    //         }
    //       ]
    //     },


    //     // table 每个字段及其类型
    //     tableColumn: {
    //       column: [
    //         { label: '主键 ID', key: 'id', isShow: false, type:'text'},
    //         { label: '谷仓商品', effect:'dark', key: 'product_sku', isShow: true, type:'tag', fixed:true, calc_tag_color:(item, row)=>{
    //           if(row.need_add==2){
    //             return "warning"
    //           }
    //           if(row.need_add ==1){
    //             return "danger"
    //           }
    //           else{
    //             return ""
    //           }


    //         } },
    //         { label: '商品名称', key: 'product_title_cn', isShow: true, type:'text', fixed:true},
    //         { label: '最后下单时间', key: 'last_sale_time', isShow: true, type:'date'},
    //         // { label: '最后订单号', key: 'last_order', isShow: true, type:'text'},
    //         { label: '是否删除', key: 'isDelete', isShow: false, type:'text'},
    //         { label: '未售出时长', key: 'hours_since_last_sale', isShow: true, type:'text'},
    //         // { label: '待发货数量', key: 'redis_online', isShow: true, type:'text'},
    //         { label: '退货次数', key: 'return_info', isShow: true, type:'row_many', column:1,map:[
    //           {
    //             label:"90天售出数",
    //             key:'day_90'
    //           },
    //           {
    //             label:"90天退货数",
    //             key:'day_90_r'
    //           },
    //           {
    //             label:"90天退货率",
    //             key:'day_90_r_rate'
    //           },
    //         ]},
    //         { label: '建议补货', key: 'need_info', isShow: true, type:'row_many', column:1, map:[
    //           // {label:'补半个月', key:'need_half'},
    //           {label:'全部可用', key:'all'},
    //           {label:'海外在仓合计', key:'origin_inventory'},
    //           {label:'海外在途合计', key:'origin_wait'},
    //           {label:'滨州仓合计', key:'yc_count'},
    //           {label:'建议补货数量(20天)', key:'need_20', style:"font-weight: bold;"}
    //         ]},
    //         {
    //           label:'选品人', key:'person_develop_id',
    //           type:'select',
    //           isShow:true,
    //           url: {
    //                 api: '/SysUser/person_develop_id/all',
    //                 method: 'get',
    //                 map: {
    //                   value: 'user_name',
    //                   name: 'user_id'
    //                 }
    //               },
    //           key: 'person_develop_id',
    //         },
    //         {
    //           label:'运营人', key:'person_seller_id',
    //           type:'select',
    //           isShow:true,
    //           url: {
    //                 api: '/SysUser/person_seller_id/all',
    //                 method: 'get',
    //                 map: {
    //                   value: 'user_name',
    //                   name: 'user_id'
    //                 }
    //               },
    //           key: 'person_seller_id',
    //         },
    //         {label:'可售天数', key:'can_sell_day', isShow:true,type:'text'},
    //         {label:'售出分析', key:'sall_rate_info', minWidth:200, isShow:true, type:'row_many', column:2, map:[
    //           [{
    //             label:'7天售出',
    //             key:'day_7'
    //           },  {
    //             label:'14天售出',
    //             key:'day_14'
    //           }, {
    //             label:'30天售出',
    //             key:'day_30'
    //           },{
    //             label:'60天售出',
    //             key:'day_60'
    //           }, {
    //             label:'90天售出',
    //             key:'day_90'
    //           }],
    //           [ {
    //             label:'每天均售',
    //             key:'day_7_aver'
    //           },

    //           {
    //             label:'每天均售',
    //             key:'day_14_aver'
    //           },

    //           {
    //             label:'每天均售',
    //             key:'day_30_aver'
    //           },

    //           {
    //             label:'每天均售',
    //             key:'day_60_aver'
    //           },{
    //             label:'每天均售',
    //             key:'day_90_aver'
    //           }]
    //         ]},

    //         {
    //           label:'美南仓',isShow:true, key:'ussc_dict',minWidth:400, type:'row_many',calc_count:(item)=>{if(item.area_calc){return 3}},
    //            column:3, map:[
    //             [
    //               {key:'area_7', label:'7天售出'},
    //               {key:'area_14', label:'14天售出'},
    //               {key:'area_30', label:'30天售出'},
    //               {key:'area_signal_rate', label:'每天均售'},
    //             ],
    //             [
    //             {key:'area_inventory', label:'在库'},
    //             {key:'area_wait', label:'在途'},
    //             {key:"area_all", label:'全部可用'},
    //             // {key:'area_half', label:'补货(半个月)',calc_show:(item)=>(item.area_calc==true)},

    //             {key:'area_info', label:'备注', calc_show:(item)=>(item.area_calc==false)},
    //             ],
    //             [
    //               {key:'area_inventory_sell',label:'可售天数',calc_show:(item)=>(item.area_calc==true)},
    //               {key:'area_wait_sell', label:'可售天数',calc_show:(item)=>(item.area_calc==true)},
    //               {key:'area_all_sell', label:'可售天数',calc_show:(item)=>(item.area_calc==true)},
    //               {key:'area_20', blod:true, style: "font-weight: bold;",  label:'建议补货(20天)', calc_show:(item)=>(item.area_calc==true)},
    //             ]
    //             ]
    //         },

    //         {
    //           label:'美东仓',isShow:true, key:'usea_dict',minWidth:400, type:'row_many',calc_count:(item)=>{if(item.area_calc){return 3}},
    //            column:3, map:[
    //             [
    //               {key:'area_7', label:'7天售出'},
    //               {key:'area_14', label:'14天售出'},
    //               {key:'area_30', label:'30天售出'},
    //               {key:'area_signal_rate', label:'每天均售'},
    //             ],
    //             [
    //             {key:'area_inventory', label:'在库'},
    //             {key:'area_wait', label:'在途'},
    //             {key:"area_all", label:'全部可用'},
    //             // {key:'area_half', label:'补货(半个月)',calc_show:(item)=>(item.area_calc==true)},
    //             {key:'area_info', label:'备注', calc_show:(item)=>(item.area_calc==false)},
    //             ],
    //             [
    //               {key:'area_inventory_sell',label:'可售天数',calc_show:(item)=>(item.area_calc==true)},
    //               {key:'area_wait_sell', label:'可售天数',calc_show:(item)=>(item.area_calc==true)},
    //               {key:'area_all_sell', label:'可售天数',calc_show:(item)=>(item.area_calc==true)},
    //               {key:'area_20', style: "font-weight: bold;", label:'建议补货(20天)', calc_show:(item)=>(item.area_calc==true)},
    //             ]
    //             ]
    //         },

    //         {
    //           label:'美西仓',isShow:true, key:'uswe_dict',minWidth:400, type:'row_many',calc_count:(item)=>{if(item.area_calc){return 3}},
    //            column:3, map:[
    //             [
    //               {key:'area_7', label:'7天售出'},
    //               {key:'area_14', label:'14天售出'},
    //               {key:'area_30', label:'30天售出'},
    //               {key:'area_signal_rate', label:'每天均售'},
    //             ],
    //             [
    //             {key:'area_inventory', label:'在库'},
    //             {key:'area_wait', label:'在途'},
    //             {key:"area_all", label:'全部可用'},
    //             // {key:'area_half', label:'补货(半个月)',calc_show:(item)=>(item.area_calc==true)},
    //             {key:'area_info', label:'备注', calc_show:(item)=>(item.area_calc==false)},
    //             ],
    //             [
    //               {key:'area_inventory_sell',label:'可售天数',calc_show:(item)=>(item.area_calc==true)},
    //               {key:'area_wait_sell', label:'可售天数',calc_show:(item)=>(item.area_calc==true)},
    //               {key:'area_all_sell', label:'可售天数',calc_show:(item)=>(item.area_calc==true)},
    //               {key:'area_20', style: "font-weight: bold;", label:'建议补货(20天)', calc_show:(item)=>(item.area_calc==true)},
    //             ]
    //             ]
    //         },
    //         {
    //           label:'滨州仓', key:'yc_dict', type:'row_many', column:1,isShow:true, map:[
    //             {key:"actual_usable_inventory_qty", label:'可售(含待出库)'},
    //             {key:'pi_pending_qty', label:'待上架'},
    //             {key:'pi_purchase_onway_qty', label:'采购在途'},
    //             {key:'yc_count', label:'滨州仓合计'},
    //           ]
    //         },

    //         {label:'计算售率', key:'calc_rate', minWidth:200, isShow:true, type:'row_many', column:1, map:[
    //           [{
    //             label:'最终计算售率',
    //             key:'signal_rate'
    //           },
    //             {
    //             label:'7天计算售率',
    //             key:'day_7_rate'
    //           },  {
    //             label:'14天计算售率',
    //             key:'day_14_rate'
    //           }, {
    //             label:'30天计算售率',
    //             key:'day_30_rate'
    //           }],
    //         ]}
    //       ],
    //       btn: [
    //       ],
    //     },
    //     url: {
    //       method: 'get',
    //       api: '/ProductForecastInfo/query',
    //       pageSize: 20,
    //       params: [
    //       ]
    //     }
    //   },
    // },

    // 橙联&谷仓库存分析

    {
      name: '橙联&谷仓库存分析',
      tableName: 'Product_cl_gc',
      data: {
        TopConfig: {
          data: [
            {
              default: '',
              required: false,
              type: 'text',
              key: 'product_sku',
              placeholder: '请输入谷仓商品SKU',
            },
            {
              type: 'input-group',
              width: 400,
              value: [
                {
                  type: 'select', key: 'select', default: 0, placeholder: '请选择', data: [
                    { name: '请选择可售类型', value: 0 },
                    { name: '总可售天', value: 1 },
                    { name: '国内在途可售天', value: 2 },
                    { name: '国内在仓可售天', value: 3 },
                    { name: '海外在途可售天', value: 4 },
                    { name: '海外在仓可售天', value: 5 },
                    { name: '未售出时长(天)', value: 7 },
                    { name: '退货率', value: 8 },
                  ]
                },
                { type: 'input', key: 'value1', default: '', placeholder: '最小值', use_between: true },
                { type: 'input', key: 'value2', default: '', placeholder: '最大值' },
              ]
            },

            {
              required: false,
              type: 'select',
              default: 0,
              placeholder: '销售趋势',
              data: [
                { name: '全部', value: 0 },
                { name: '新品(未出单)', value: 'new' },
                { name: '非新品', value: 'old' },
                { name: '持续上升', value: 'up_continue' },
                { name: '持续下降', value: 'down_continue' },
                { name: '阶段上升', value: 'up_variation' },
                { name: '阶段下降', value: 'down_variation' }
              ],
              key: 'strategy',
              placeholder: '销售趋势',
            },

            {
              type: 'input-group',
              width: 300,
              value: [
                {
                  default: 0, required: false, type: 'select', data:
                    [
                      {
                        value: 0, name: '全部人员', "inner_change": true,
                        replace_inner:
                        {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            data: [],
                            key: 'person_develop_id',
                            placeholder: '请选择人员',
                          },
                        }
                      },
                      {
                        value: 1, name: '选品人', "inner_change": true, replace_inner: {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            url: {
                              api: '/SysUser/person_develop_id/all',
                              method: 'get',
                              map: {
                                value: 'user_name',
                                key: 'user_id'
                              }
                            },
                            key: 'person_develop_id',
                            placeholder: '请选择开发人员',
                          },
                        }
                      },
                      {
                        value: 2, name: '运营人', "inner_change": true, replace_inner: {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            url: {
                              api: '/SysUser//person_seller_id/all',
                              method: 'get',
                              map: {
                                value: 'user_name',
                                key: 'user_id'
                              }
                            },
                            key: 'person_develop_id',
                            placeholder: '请选择开发人员',
                          },
                        }
                      },
                    ],
                  key: 'user_type',
                  placeholder: '请选择人员类型',
                },

                {
                  default: '', required: false, type: 'select',
                  placeholder: '请选择人员',
                  data: [],
                  key: 'person_develop_id',
                  placeholder: '请选择开发人员',
                },

              ]
            },

            {
              default: ["last_sale_time", "desc"],
              required: false,
              type: 'cascader',
              key: 'order_by',
              props: {},
              placeholder: '请选择排序方式',
              data: [{
                label: '最后出单日期',
                value: 'last_sale_time',
                children: [{
                  value: 'asc',
                  label: '从远到近'
                },
                {
                  value: 'desc',
                  label: '从近到远'
                }]
              },
              {
                label: '未售出时长',
                value: 'last_sale_time',
                children: [{
                  value: 'asc',
                  label: '从远到近'
                },
                {
                  value: 'desc',
                  label: '从近到远'
                }]
              },
              {
                label: '3个月销量',
                value: 'day_90',
                children: [{
                  value: 'asc',
                  label: '从小到大'
                },
                {
                  value: 'desc',
                  label: '从大到小'
                }]
              },
              {
                label: '3个月退货量',
                value: 'day_90_r',
                children: [{
                  value: 'asc',
                  label: '从小到大'
                },
                {
                  value: 'desc',
                  label: '从大到小'
                }]
              },
              {
                label: '退货率',
                value: 'day_90_r_rate',
                children: [{
                  value: 'asc',
                  label: '从小到大'
                },
                {
                  value: 'desc',
                  label: '从大到小'
                }]
              },
              {
                label: '可售天数',
                value: 'can_sell_day',
                children: [{
                  value: 'asc',
                  label: '从小到大'
                },
                {
                  value: 'desc',
                  label: '从大到小'
                }]
              },
              {
                label: '库龄',
                value: 'can_sell_day',
                children: [{
                  value: 'asc',
                  label: '从小到大'
                },
                {
                  value: 'desc',
                  label: '从大到小'
                }]
              },
              {
                label: '月销量',
                value: 'day_30',
                children: [{
                  value: 'asc',
                  label: '从小到大'
                },
                {
                  value: 'desc',
                  label: '从大到小'
                }]
              },
              {
                label: '日均销量',
                value: 'day_30_aver',
                children: [{
                  value: 'asc',
                  label: '从小到大'
                },
                {
                  value: 'desc',
                  label: '从大到小'
                }]
              }

              ]
            }
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/ProductForecastInfo/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/ProductForecastInfo/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '主键 ID', key: 'id', isShow: false, type: 'text' },
            {
              label: '谷仓商品', effect: 'dark', key: 'product_sku', isShow: true, type: 'tag', fixed: true, calc_tag_color: (item, row) => {
                if (row.need_add == 2) {
                  return "warning"
                }
                if (row.need_add == 1) {
                  return "danger"
                }
                else {
                  return ""
                }


              },
              after: {
                type: 'text',
                text: row => { return row.describe?.length > 0 ? '标记:' + row.describe : '' },
                style: 'color:#409eff;cursor:pointer;padding-left:3px; margin-top:10px'
              }
            },
            {
              label: '商品名称', key: 'product_title_cn', isShow: true, type: 'text', fixed: true,

              after: {
                text: row => { return '设置标签' },
                style: 'color:#409eff;cursor:pointer;padding-left:3px',
                use_tablebtn_event: {
                  label: '设置标签',
                  style: 'primary',
                  ifDialog: true,
                  dialogConfig: [
                    {
                      default: '',
                      placeholder: '请输入sku',
                      label: 'sku',
                      key: 'product_sku',
                      required: true,
                      isShow: true,
                      disabled: true
                    },
                    {
                      default: [],
                      placeholder: '请选择标签',
                      label: '选择标签',
                      key: 'sku_tags',
                      required: false,
                      isShow: true,
                      type: 'select',
                      multiple: true,
                      data: [{
                        value: 1,
                        name: '淘汰商品'
                      }, {
                        value: 2,
                        name: '不计算断货'
                      }
                      ]
                    },
                    // {
                    //   default: '',
                    //   placeholder: '是否系统用户',
                    //   label: '系统用户?',
                    //   type: "select",
                    //   key: 'ifOperator',
                    //   data: [{ value: true, name: '系统用户' }, { value: false, name: '访问人员' }],
                    //   required: true,
                    //   isShow: true,
                    // },
                    {
                      default: '',
                      key: 'id',
                      required: true,
                      isShow: false,
                    }
                  ],
                  url: {
                    method: 'post',
                    api: '/ProductForecastInfo/update',
                    path: []
                  }
                },
              }

            },
            {
              label: '最后下单时间', key: 'last_sale_time', isShow: true, type: 'date',
              after: {
                text: row => { return '添加标记' },
                style: 'color:#409eff;cursor:pointer;padding-left:3px',
                use_tablebtn_event: {
                  label: '添加标记',
                  style: 'primary',
                  ifDialog: true,
                  dialogConfig: [
                    {
                      default: '',
                      placeholder: 'sku',
                      label: 'sku',
                      key: 'product_sku',
                      required: true,
                      isShow: true,
                      disabled: true
                    },
                    {
                      default: '',
                      placeholder: 'describe',
                      label: '自定义标记',
                      key: 'describe',
                      required: false,
                      isShow: true,
                    },
                    // {
                    //   default: '',
                    //   placeholder: '是否系统用户',
                    //   label: '系统用户?',
                    //   type: "select",
                    //   key: 'ifOperator',
                    //   data: [{ value: true, name: '系统用户' }, { value: false, name: '访问人员' }],
                    //   required: true,
                    //   isShow: true,
                    // },
                    {
                      default: '',
                      key: 'id',
                      required: true,
                      isShow: false,
                    }
                  ],
                  url: {
                    method: 'post',
                    api: '/ProductForecastInfo/update/describe',
                    path: []
                  }
                },
              }

            },
            // { label: '最后订单号', key: 'last_order', isShow: true, type:'text'},
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
            { label: '未售出时长', key: 'hours_since_last_sale', isShow: true, type: 'text' },
            // { label: '待发货数量', key: 'redis_online', isShow: true, type:'text'},
            {
              label: '退货次数', key: 'return_info', isShow: true, type: 'row_many', column: 1, map: [
                {
                  label: "90天售出数",
                  key: 'day_90'
                },
                {
                  label: "90天退货数",
                  key: 'day_90_r'
                },
                {
                  label: "90天退货率",
                  key: 'day_90_r_rate'
                },
              ]
            },
            {
              label: '断货次数', key: 'out_stock', isShow: true, type: 'row_many', column: 1, map: [
                {
                  label: "本月断货",
                  key: 'this_month_cnt'
                },
                {
                  label: "上月断货",
                  key: 'last_month_cnt'
                }
              ],
              calc_column: (item, row) => (row.calc_stock == false ? '已开启不计算断货' : false)
            },
            {
              label: '建议补货', key: 'need_info', isShow: true, type: 'row_many', column: 1, map: [
                // {label:'补半个月', key:'need_half'},
                { label: '全部可用', key: 'all' },
                { label: '海外在仓合计', key: 'origin_inventory' },
                { label: '海外在途合计', key: 'origin_wait' },
                { label: '滨州仓合计', key: 'yc_count' },
                { label: '建议补货数量(20天)', key: 'need_20', style: "font-weight: bold;" }
              ]
            },
            {
              label: '选品人', key: 'person_develop_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_develop_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_develop_id',
            },
            {
              label: '运营人', key: 'person_seller_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_seller_id',
            },
            { label: '可售天数', key: 'can_sell_day', isShow: true, type: 'text' },
            {
              label: '售出分析', key: 'sall_rate_info', minWidth: 350, isShow: true, type: 'row_many', column: 2, map: [
                [{
                  label: '7天售出',
                  key: 'day_7'
                }, {
                  label: '14天售出',
                  key: 'day_14'
                }, {
                  label: '30天售出',
                  key: 'day_30'
                },
                { key: 'msg', label: '备注', calc_show: (item) => (item.use_stock == true) },

                {
                  label: '60天售出',
                  key: 'day_60',
                  calc_show: (item) => (item.use_stock != true)
                }, {
                  label: '90天售出',
                  key: 'day_90',
                  calc_show: (item) => (item.use_stock != true)
                }],
                [{
                  label: '每天均售',
                  key: 'day_7_aver'
                },

                {
                  label: '每天均售',
                  key: 'day_14_aver'
                },

                {
                  label: '每天均售',
                  key: 'day_30_aver'
                },

                {
                  label: '每天均售',
                  key: 'day_60_aver',
                  calc_show: (item) => (item.use_stock != true)
                }, {
                  label: '每天均售',
                  key: 'day_90_aver',
                  calc_show: (item) => (item.use_stock != true)
                }]
              ]
            },


            {
              label: '美西仓(橙联)', isShow: true, key: 'us_west_dict', minWidth: 400, type: 'row_many', calc_count: (item) => { if (item.area_calc) { return 3 } },
              column: 3, map: [
                [
                  { key: 'area_7', label: '7天售出' },
                  { key: 'area_14', label: '14天售出' },
                  { key: 'area_30', label: '30天售出' },
                  { key: 'area_signal_rate', label: '每天均售' },
                ],
                [
                  { key: 'area_inventory', label: '在库' },
                  { key: 'area_wait', label: '在途' },
                  { key: "area_all", label: '全部可用' },
                  // {key:'area_half', label:'补货(半个月)',calc_show:(item)=>(item.area_calc==true)},
                  { key: 'area_info', label: '备注', calc_show: (item) => (item.area_calc == false) },
                ],
                [
                  { key: 'area_inventory_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_wait_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_all_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_20', style: "font-weight: bold;", label: '建议补货(20天)', calc_show: (item) => (item.area_calc == true) },
                ]
              ]
            },

            {
              label: '美东仓(橙联)', isShow: true, key: 'us_east_dict', minWidth: 400, type: 'row_many', calc_count: (item) => { if (item.area_calc) { return 3 } },
              column: 3, map: [
                [
                  { key: 'area_7', label: '7天售出' },
                  { key: 'area_14', label: '14天售出' },
                  { key: 'area_30', label: '30天售出' },
                  { key: 'area_signal_rate', label: '每天均售' },
                ],
                [
                  { key: 'area_inventory', label: '在库' },
                  { key: 'area_wait', label: '在途' },
                  { key: "area_all", label: '全部可用' },
                  // {key:'area_half', label:'补货(半个月)',calc_show:(item)=>(item.area_calc==true)},
                  { key: 'area_info', label: '备注', calc_show: (item) => (item.area_calc == false) },
                ],
                [
                  { key: 'area_inventory_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_wait_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_all_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_20', style: "font-weight: bold;", label: '建议补货(20天)', calc_show: (item) => (item.area_calc == true) },
                ]
              ]
            },

            {
              label: '美南仓(橙联)', isShow: true, key: 'us_south_dict', minWidth: 400, type: 'row_many', calc_count: (item) => { if (item.area_calc) { return 3 } },
              column: 3, map: [
                [
                  { key: 'area_7', label: '7天售出' },
                  { key: 'area_14', label: '14天售出' },
                  { key: 'area_30', label: '30天售出' },
                  { key: 'area_signal_rate', label: '每天均售' },
                ],
                [
                  { key: 'area_inventory', label: '在库' },
                  { key: 'area_wait', label: '在途' },
                  { key: "area_all", label: '全部可用' },
                  // {key:'area_half', label:'补货(半个月)',calc_show:(item)=>(item.area_calc==true)},
                  { key: 'area_info', label: '备注', calc_show: (item) => (item.area_calc == false) },
                ],
                [
                  { key: 'area_inventory_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_wait_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_all_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_20', style: "font-weight: bold;", label: '建议补货(20天)', calc_show: (item) => (item.area_calc == true) },
                ]
              ]
            },

            {
              label: '美南仓(谷仓)', isShow: true, key: 'ussc_dict', minWidth: 400, type: 'row_many', calc_count: (item) => { if (item.area_calc) { return 3 } },
              column: 3, map: [
                [
                  { key: 'area_7', label: '7天售出' },
                  { key: 'area_14', label: '14天售出' },
                  { key: 'area_30', label: '30天售出' },
                  { key: 'area_signal_rate', label: '每天均售' },
                ],
                [
                  { key: 'area_inventory', label: '在库' },
                  { key: 'area_wait', label: '在途' },
                  { key: "area_all", label: '全部可用' },
                  // {key:'area_half', label:'补货(半个月)',calc_show:(item)=>(item.area_calc==true)},

                  { key: 'area_info', label: '备注', calc_show: (item) => (item.area_calc == false) },
                ],
                [
                  { key: 'area_inventory_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_wait_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_all_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_20', blod: true, style: "font-weight: bold;", label: '建议补货(20天)', calc_show: (item) => (item.area_calc == true) },
                ]
              ]
            },

            {
              label: '美东仓(谷仓)', isShow: true, key: 'usea_dict', minWidth: 400, type: 'row_many', calc_count: (item) => { if (item.area_calc) { return 3 } },
              column: 3, map: [
                [
                  { key: 'area_7', label: '7天售出' },
                  { key: 'area_14', label: '14天售出' },
                  { key: 'area_30', label: '30天售出' },
                  { key: 'area_signal_rate', label: '每天均售' },
                ],
                [
                  { key: 'area_inventory', label: '在库' },
                  { key: 'area_wait', label: '在途' },
                  { key: "area_all", label: '全部可用' },
                  // {key:'area_half', label:'补货(半个月)',calc_show:(item)=>(item.area_calc==true)},
                  { key: 'area_info', label: '备注', calc_show: (item) => (item.area_calc == false) },
                ],
                [
                  { key: 'area_inventory_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_wait_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_all_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_20', style: "font-weight: bold;", label: '建议补货(20天)', calc_show: (item) => (item.area_calc == true) },
                ]
              ]
            },

            {
              label: '美西仓(谷仓)', isShow: true, key: 'uswe_dict', minWidth: 400, type: 'row_many', calc_count: (item) => { if (item.area_calc) { return 3 } },
              column: 3, map: [
                [
                  { key: 'area_7', label: '7天售出' },
                  { key: 'area_14', label: '14天售出' },
                  { key: 'area_30', label: '30天售出' },
                  { key: 'area_signal_rate', label: '每天均售' },
                ],
                [
                  { key: 'area_inventory', label: '在库' },
                  { key: 'area_wait', label: '在途' },
                  { key: "area_all", label: '全部可用' },
                  // {key:'area_half', label:'补货(半个月)',calc_show:(item)=>(item.area_calc==true)},
                  { key: 'area_info', label: '备注', calc_show: (item) => (item.area_calc == false) },
                ],
                [
                  { key: 'area_inventory_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_wait_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_all_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_20', style: "font-weight: bold;", label: '建议补货(20天)', calc_show: (item) => (item.area_calc == true) },
                ]
              ]
            },
            {
              label: '滨州仓', key: 'yc_dict', type: 'row_many', column: 1, isShow: true, map: [
                { key: "actual_usable_inventory_qty", label: '可售(含待出库)' },
                { key: 'pi_pending_qty', label: '待上架' },
                { key: 'pi_purchase_onway_qty', label: '采购在途' },
                { key: 'yc_count', label: '滨州仓合计' },
              ]
            },

            {
              label: '计算售率', key: 'calc_rate', minWidth: 200, isShow: true, type: 'row_many', column: 1,
              map: [
                [{
                  label: '最终计算售率',
                  key: 'signal_rate'
                },
                {
                  label: '7天计算售率',
                  key: 'day_7_rate'
                }, {
                  label: '14天计算售率',
                  key: 'day_14_rate'
                }, {
                  label: '30天计算售率',
                  key: 'day_30_rate'
                }],
              ]
            }
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/ProductForecastInfo/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },


    // sku 流量分析
    {
      name: 'SkuTrafficReport',
      tableName: 'SkuTrafficReport',
      data: {

        cardOptions: {
          query_data:{
            url:{
              method:'get',
              api:'/SkuTrafficReport/query/card',
              params:false
            },
          }
        },

        chartOptions: {
          title: {
            text: 'sku曝光量与点击率、转化率分析',
            left: 'center'
          },
          tooltip: {
            trigger: 'axis',
            axisPointer: {
              type: 'cross'
            },
            formatter: function (params) {
              let result = params[0].axisValue + '<br/>';
              params.forEach(p => {
                result += `${p.marker} ${p.seriesName}: ${p.value}${p.seriesName.includes('率') ? '' : ''}<br/>`;
              });
              return result;
            }
          },
          legend: {
            data: ['曝光量', '点击率', '转化率'],
            top: 25,
            left: 'center',
            textStyle: {
              fontSize: 14
            }
          },
          grid: {
            top: 80,
            left: 60,
            right: 60,
            bottom: 60
          },
          xAxis: {
            type: 'category',
            data: [
              "2025-09-25", "2025-09-26", "2025-09-27", "2025-09-28", "2025-09-29",
              "2025-09-30", "2025-10-01", "2025-10-02", "2025-10-03", "2025-10-04",
              "2025-10-05", "2025-10-06", "2025-10-07", "2025-10-08", "2025-10-09"
            ]
          },
          yAxis: [
            {
              type: 'value',
              name: '曝光量',
              position: 'left',
              axisLine: { lineStyle: { color: '#e4941cff' } },
              splitLine: { show: false }
            },
            {
              type: 'value',
              name: '比率',
              position: 'right',
              axisLine: { lineStyle: { color: '#5470C6' } },
              min: 0,
              max: 1,
              splitLine: { show: false }
            }
          ],
          series: [
            {
              name: '曝光量',
              type: 'bar',
              yAxisIndex: 0,
              data: [320, 280, 350, 400, 380, 420, 460, 440, 410, 390, 370, 400, 430, 450, 470],
              itemStyle: { color: '#e4941cff' },
              barWidth: 20
            },
            {
              name: '点击率',
              type: 'line',
              yAxisIndex: 1,
              smooth: true,
              itemStyle: { color: '#5470C6' },
              data: [0.32, 0.28, 0.35, 0.40, 0.38, 0.42, 0.46, 0.44, 0.41, 0.39, 0.37, 0.40, 0.43, 0.45, 0.47]
            },
            {
              name: '转化率',
              type: 'line',
              yAxisIndex: 1,
              smooth: true,
              itemStyle: { color: '#91CC75' },
              data: [0.18, 0.20, 0.15, 0.22, 0.25, 0.27, 0.30, 0.28, 0.24, 0.21, 0.23, 0.26, 0.29, 0.31, 0.27]
            }
          ],

          url:{
            method:'get',
            api:'/SkuTrafficReport/query/chart',
            params:false
          }

        },


        TopConfig: {
          data: [
            {
              type:'textarea',
              key:'platform_sku',
              placeholder:'平台sku,以英文逗号分隔',
              default:'',
            },
             {
              type: 'input-group',
              width: 300,
              value: [
                {
                  default: 0, required: false, type: 'select', data:
                    [
                      {
                        value: 0, name: '全部人员', "inner_change": true,
                        replace_inner:
                        {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            data: [],
                            key: 'person_develop_id',
                            placeholder: '请选择人员',
                          },
                        }
                      },
                      {
                        value: 1, name: '选品人', "inner_change": true, replace_inner: {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            url: {
                              api: '/SysUser/person_develop_id/all',
                              method: 'get',
                              map: {
                                value: 'user_name',
                                key: 'user_id'
                              }
                            },
                            key: 'person_develop_id',
                            placeholder: '请选择开发人员',
                          },
                        }
                      },
                      {
                        value: 2, name: '运营人', "inner_change": true, replace_inner: {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            url: {
                              api: '/SysUser//person_seller_id/all',
                              method: 'get',
                              map: {
                                value: 'user_name',
                                key: 'user_id'
                              }
                            },
                            key: 'person_develop_id',
                            placeholder: '请选择开发人员',
                          },
                        }
                      },
                    ],
                  key: 'user_type',
                  placeholder: '请选择人员类型',
                },

                {
                  default: '', required: false, type: 'select',
                  placeholder: '请选择人员',
                  data: [],
                  key: 'person_develop_id',
                  placeholder: '请选择开发人员',
                },

              ]
            },
            {
              type: 'input-group',
              width: 360,
              value: [
                {
                  type: 'select', key: 'time', default: 0, placeholder: '请选择', data: [
                    { name: '统计时间', value: 0 },
                  ],
                  isShow: false
                },
                { type: 'date', key: 'search_start', default: '', placeholder: '开始时间', use_between: true },
                { type: 'date', key: 'search_end', default: '', placeholder: '结束时间' },
              ]
            },

            {
              type: 'input-group',
              width: 480,
              value: [
                {
                  type: 'select', key: 'ti', default: 0, placeholder: '请选择关系', data: [
                    { name: '并且(曝光)', value: 0 },
                    { name: '或者(曝光)', value: 1 },
                  ]
                },
                { type: 'text', key: 'ti_min', default: '', placeholder: '最小值', use_between: true },
                { type: 'text', key: 'ti_max', default: '', placeholder: '最大值' },
              ]
            },

            {
              type: 'input-group',
              width: 480,
              value: [
                {
                  type: 'select', key: 'c', default: 0, placeholder: '请选择关系', data: [
                    { name: '并且(点击率)', value: 0 },
                    { name: '或者(点击率)', value: 1 },
                  ]
                },
                { type: 'text', key: 'c_min', default: '', placeholder: '最小值', use_between: true },
                { type: 'text', key: 'c_max', default: '', placeholder: '最大值' },
              ]
            },


            {
              type: 'input-group',
              width: 480,
              value: [
                {
                  type: 'select', key: 's', default: 0, placeholder: '请选择关系', data: [
                    { name: '并且(转化率)', value: 0 },
                    { name: '或者(转化率)', value: 1 },
                  ]
                },
                { type: 'text', key: 's_min', default: '', placeholder: '最小值', use_between: true },
                { type: 'text', key: 's_max', default: '', placeholder: '最大值' },
              ]
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/SkuTrafficReport/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },
            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/SkuTrafficReport/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '自增ID', key: 'id', isShow: false, type: 'text' },
            {
              label: '选品人', key: 'person_develop_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_develop_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_develop_id',
            },
            {
              label: '销售人', key: 'person_seller_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_seller_id',
            },
            { label: '平台sku', key: 'platform_sku', isShow: true, type: 'text' },
            { label: '总曝光量', key: 'total_impression_total', isShow: true, type: 'text' },
            { label: 'Listing 曝光量', key: 'listing_impression_total', isShow: false, type: 'text' },
            { label: '总点击量', key: 'listing_views_total', isShow: true, type: 'text' },
            { label: '成交数量', key: 'transaction', isShow: true, type: 'text' },
            { label: '点击率', key: 'click_through_rate', isShow: true, type: 'percentage' },
            { required: true, label: '转化率', key: 'sales_conversion_rate', isShow: true, type: 'percentage' },
            { required: true, label: '开始时间', key: 'start_date', isShow: true, type: 'date' },
            { required: true, label: '结束时间', key: 'end_date', isShow: true, type: 'date' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/SkuTrafficReport/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },


    // listing 流量分析

    {
      name: 'ListingTrafficReport',
      tableName: 'ListingTrafficReport',
      data: {
        cardOptions: {
          query_data:{
            url:{
              method:'get',
              api:'/SkuTrafficReport/query/card',
              params:false
            },
          }
        },

        chartOptions: {
          title: {
            text: '用户曝光量与点击率、转化率分析',
            left: 'center'
          },
          tooltip: {
            trigger: 'axis',
            axisPointer: {
              type: 'cross'
            },
            formatter: function (params) {
              let result = params[0].axisValue + '<br/>';
              params.forEach(p => {
                result += `${p.marker} ${p.seriesName}: ${p.value}${p.seriesName.includes('率') ? '' : ''}<br/>`;
              });
              return result;
            }
          },
          legend: {
            data: ['曝光量', '点击率', '转化率'],
            top: 25,
            left: 'center',
            textStyle: {
              fontSize: 14
            }
          },
          grid: {
            top: 80,
            left: 60,
            right: 60,
            bottom: 60
          },
          xAxis: {
            type: 'category',
            data: [
              "2025-09-25", "2025-09-26", "2025-09-27", "2025-09-28", "2025-09-29",
              "2025-09-30", "2025-10-01", "2025-10-02", "2025-10-03", "2025-10-04",
              "2025-10-05", "2025-10-06", "2025-10-07", "2025-10-08", "2025-10-09"
            ]
          },
          yAxis: [
            {
              type: 'value',
              name: '曝光量',
              position: 'left',
              axisLine: { lineStyle: { color: '#91CC75' } },
              splitLine: { show: false }
            },
            {
              type: 'value',
              name: '比率',
              position: 'right',
              axisLine: { lineStyle: { color: '#5470C6' } },
              min: 0,
              max: 1,
              splitLine: { show: false }
            }
          ],
          series: [
            {
              name: '曝光量',
              type: 'bar',
              yAxisIndex: 0,
              data: [320, 280, 350, 400, 380, 420, 460, 440, 410, 390, 370, 400, 430, 450, 470],
              itemStyle: { color: '#91CC75' },
              barWidth: 20
            },
            {
              name: '点击率',
              type: 'line',
              yAxisIndex: 1,
              smooth: true,
              itemStyle: { color: '#5470C6' },
              data: [0.32, 0.28, 0.35, 0.40, 0.38, 0.42, 0.46, 0.44, 0.41, 0.39, 0.37, 0.40, 0.43, 0.45, 0.47]
            },
            {
              name: '转化率',
              type: 'line',
              yAxisIndex: 1,
              smooth: true,
              itemStyle: { color: '#e4941cff' },
              data: [0.18, 0.20, 0.15, 0.22, 0.25, 0.27, 0.30, 0.28, 0.24, 0.21, 0.23, 0.26, 0.29, 0.31, 0.27]
            }
          ],
          // 根据查询参数获取数据
          url:{
              method:'get',
              api:'/SkuTrafficReport/query/chart',
              params:false
            },
        },


        TopConfig: {
          data: [
            {
              type:'textarea',
              key:'platform_sku',
              placeholder:'平台sku,以英文逗号分隔',
              default:'',
            },
             {
              type: 'input-group',
              width: 300,
              value: [
                {
                  default: 0, required: false, type: 'select', data:
                    [
                      {
                        value: 0, name: '全部人员', "inner_change": true,
                        replace_inner:
                        {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            data: [],
                            key: 'person_develop_id',
                            placeholder: '请选择人员',
                          },
                        }
                      },
                      {
                        value: 1, name: '选品人', "inner_change": true, replace_inner: {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            url: {
                              api: '/SysUser/person_develop_id/all',
                              method: 'get',
                              map: {
                                value: 'user_name',
                                key: 'user_id'
                              }
                            },
                            key: 'person_develop_id',
                            placeholder: '请选择开发人员',
                          },
                        }
                      },
                      {
                        value: 2, name: '运营人', "inner_change": true, replace_inner: {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            url: {
                              api: '/SysUser//person_seller_id/all',
                              method: 'get',
                              map: {
                                value: 'user_name',
                                key: 'user_id'
                              }
                            },
                            key: 'person_develop_id',
                            placeholder: '请选择开发人员',
                          },
                        }
                      },
                    ],
                  key: 'user_type',
                  placeholder: '请选择人员类型',
                },

                {
                  default: '', required: false, type: 'select',
                  placeholder: '请选择人员',
                  data: [],
                  key: 'person_develop_id',
                  placeholder: '请选择开发人员',
                },

              ]
            },
            {
              type: 'input-group',
              width: 360,
              value: [
                {
                  type: 'select', key: 'time', default: 0, placeholder: '请选择', data: [
                    { name: '统计时间', value: 0 },
                  ],
                  isShow: false
                },
                { type: 'date', key: 'search_start', default: '', placeholder: '开始时间', use_between: true },
                { type: 'date', key: 'search_end', default: '', placeholder: '结束时间' },
              ]
            },

            {
              type: 'input-group',
              width: 480,
              value: [
                {
                  type: 'select', key: 'ti', default: 0, placeholder: '请选择关系', data: [
                    { name: '并且(曝光)', value: 0 },
                    { name: '或者(曝光)', value: 1 },
                  ]
                },
                { type: 'text', key: 'ti_min', default: '', placeholder: '最小值', use_between: true },
                { type: 'text', key: 'ti_max', default: '', placeholder: '最大值' },
              ]
            },

            {
              type: 'input-group',
              width: 480,
              value: [
                {
                  type: 'select', key: 'c', default: 0, placeholder: '请选择关系', data: [
                    { name: '并且(点击率)', value: 0 },
                    { name: '或者(点击率)', value: 1 },
                  ]
                },
                { type: 'text', key: 'c_min', default: '', placeholder: '最小值', use_between: true },
                { type: 'text', key: 'c_max', default: '', placeholder: '最大值' },
              ]
            },


            {
              type: 'input-group',
              width: 480,
              value: [
                {
                  type: 'select', key: 's', default: 0, placeholder: '请选择关系', data: [
                    { name: '并且(转化率)', value: 0 },
                    { name: '或者(转化率)', value: 1 },
                  ]
                },
                { type: 'text', key: 's_min', default: '', placeholder: '最小值', use_between: true },
                { type: 'text', key: 's_max', default: '', placeholder: '最大值' },
              ]
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/EbayTrafficReport/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },
            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/SkuTrafficReport/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '自增ID', key: 'id', isShow: false, type: 'text' },
            {
              label: '选品人', key: 'person_develop_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_develop_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_develop_id',
            },
            {
              label: '销售人', key: 'person_seller_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_seller_id',
            },
            { label: '平台sku', key: 'platform_sku', isShow: true, type: 'text' },
            { label: 'listing_id', key: 'listing_id', isShow: true, type: 'text' },
            { label: '标题', key: 'listing_id', isShow: true, type: 'text' },
            { label: '价格', key: 'listing_id', isShow: true, type: 'text' },
            { label: '主图', key: 'listing_id', isShow: true, type: 'image' },

            { label: '总曝光量', key: 'total_impression_total', isShow: true, type: 'text' },
            { label: 'Listing 曝光量', key: 'listing_impression_total', isShow: false, type: 'text' },
            { label: '总点击量', key: 'listing_views_total', isShow: true, type: 'text' },
            { label: '成交数量', key: 'transaction', isShow: true, type: 'text' },
            { label: '点击率', key: 'click_through_rate', isShow: true, type: 'percentage' },
            { required: true, label: '转化率', key: 'sales_conversion_rate', isShow: true, type: 'percentage' },
            { required: true, label: '开始时间', key: 'start_date', isShow: true, type: 'date' },
            { required: true, label: '结束时间', key: 'end_date', isShow: true, type: 'date' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/EbayTrafficReport/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },


    // user 流量分析
    {
      name: 'UserTrafficReport',
      tableName: 'UserTrafficReport',
      data: {
        cardOptions: {
          query_data:{
            url:{
              method:'get',
              api:'/UserTrafficReport/query/card',
              params:false
            },
          }
        },

        chartOptions: {
          title: {
            text: '用户曝光量与点击率、转化率分析',
            left: 'center'
          },
          tooltip: {
            trigger: 'axis',
            axisPointer: {
              type: 'cross'
            },
            formatter: function (params) {
              let result = params[0].axisValue + '<br/>';
              params.forEach(p => {
                result += `${p.marker} ${p.seriesName}: ${p.value}${p.seriesName.includes('率') ? '' : ''}<br/>`;
              });
              return result;
            }
          },
          legend: {
            data: ['曝光量', '点击率', '转化率'],
            top: 25,
            left: 'center',
            textStyle: {
              fontSize: 14
            }
          },
          grid: {
            top: 80,
            left: 60,
            right: 60,
            bottom: 60
          },
          xAxis: {
            type: 'category',
            data: [
              "2025-09-25", "2025-09-26", "2025-09-27", "2025-09-28", "2025-09-29",
              "2025-09-30", "2025-10-01", "2025-10-02", "2025-10-03", "2025-10-04",
              "2025-10-05", "2025-10-06", "2025-10-07", "2025-10-08", "2025-10-09"
            ]
          },
          yAxis: [
            {
              type: 'value',
              name: '曝光量',
              position: 'left',
              axisLine: { lineStyle: { color: '#e4941cff' } },
              splitLine: { show: false }
            },
            {
              type: 'value',
              name: '比率',
              position: 'right',
              axisLine: { lineStyle: { color: '#5470C6' } },
              min: 0,
              max: 1,
              splitLine: { show: false }
            }
          ],
          series: [
            {
              name: '曝光量',
              type: 'bar',
              yAxisIndex: 0,
              data: [320, 280, 350, 400, 380, 420, 460, 440, 410, 390, 370, 400, 430, 450, 470],
              itemStyle: { color: '#e4941cff' },
              barWidth: 20
            },
            {
              name: '点击率',
              type: 'line',
              yAxisIndex: 1,
              smooth: true,
              itemStyle: { color: '#5470C6' },
              data: [0.32, 0.28, 0.35, 0.40, 0.38, 0.42, 0.46, 0.44, 0.41, 0.39, 0.37, 0.40, 0.43, 0.45, 0.47]
            },
            {
              name: '转化率',
              type: 'line',
              yAxisIndex: 1,
              smooth: true,
              itemStyle: { color: '#91CC75' },
              data: [0.18, 0.20, 0.15, 0.22, 0.25, 0.27, 0.30, 0.28, 0.24, 0.21, 0.23, 0.26, 0.29, 0.31, 0.27]
            }
          ],

          url:{
            method:'get',
            api:'/UserTrafficReport/query/chart',
            params:false
          }

        },


        TopConfig: {
          data: [
            {
              type: 'input-group',
              width: 300,
              value: [
                {
                  default: 0, required: false, type: 'select', data:
                    [
                      {
                        value: 0, name: '全部人员', "inner_change": true,
                        replace_inner:
                        {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            data: [],
                            key: 'person_develop_id',
                            placeholder: '请选择人员',
                          },
                        }
                      },
                      {
                        value: 1, name: '选品人', "inner_change": true, replace_inner: {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            url: {
                              api: '/SysUser/person_develop_id/all',
                              method: 'get',
                              map: {
                                value: 'user_name',
                                key: 'user_id'
                              }
                            },
                            key: 'person_develop_id',
                            placeholder: '请选择开发人员',
                          },
                        }
                      },
                      {
                        value: 2, name: '运营人', "inner_change": true, replace_inner: {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            url: {
                              api: '/SysUser//person_seller_id/all',
                              method: 'get',
                              map: {
                                value: 'user_name',
                                key: 'user_id'
                              }
                            },
                            key: 'person_develop_id',
                            placeholder: '请选择开发人员',
                          },
                        }
                      },
                    ],
                  key: 'user_type',
                  placeholder: '请选择人员类型',
                },

                {
                  default: '', required: false, type: 'select',
                  placeholder: '请选择人员',
                  data: [],
                  key: 'person_develop_id',
                  placeholder: '请选择开发人员',
                },

              ]
            },
            {
              type: 'input-group',
              width: 360,
              value: [
                {
                  type: 'select', key: 'time', default: 0, placeholder: '请选择', data: [
                    { name: '统计时间', value: 0 },
                  ],
                  isShow: false
                },
                { type: 'date', key: 'search_start', default: '', placeholder: '开始时间', use_between: true },
                { type: 'date', key: 'search_end', default: '', placeholder: '结束时间' },
              ]
            },

            {
              type: 'input-group',
              width: 480,
              value: [
                {
                  type: 'select', key: 'ti', default: 0, placeholder: '请选择关系', data: [
                    { name: '并且(曝光)', value: 0 },
                    { name: '或者(曝光)', value: 1 },
                  ]
                },
                { type: 'text', key: 'ti_min', default: '', placeholder: '最小值', use_between: true },
                { type: 'text', key: 'ti_max', default: '', placeholder: '最大值' },
              ]
            },

            {
              type: 'input-group',
              width: 480,
              value: [
                {
                  type: 'select', key: 'c', default: 0, placeholder: '请选择关系', data: [
                    { name: '并且(点击率)', value: 0 },
                    { name: '或者(点击率)', value: 1 },
                  ]
                },
                { type: 'text', key: 'c_min', default: '', placeholder: '最小值', use_between: true },
                { type: 'text', key: 'c_max', default: '', placeholder: '最大值' },
              ]
            },


            {
              type: 'input-group',
              width: 480,
              value: [
                {
                  type: 'select', key: 's', default: 0, placeholder: '请选择关系', data: [
                    { name: '并且(转化率)', value: 0 },
                    { name: '或者(转化率)', value: 1 },
                  ]
                },
                { type: 'text', key: 's_min', default: '', placeholder: '最小值', use_between: true },
                { type: 'text', key: 's_max', default: '', placeholder: '最大值' },
              ]
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/UserTrafficReport/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '添加',
              style: 'success',
              ifDialog: true,
              url: {
                method: 'get',
                api: '/UserTrafficReport/add'
              },
              dialogConfig: [
                { required: true, label: '自增ID', key: 'id', isShow: false, type: 'text' },
                { required: true, label: '易仓用户id', key: 'user_id', isShow: true, type: 'text' },
                { required: true, label: '总曝光量', key: 'total_impression_total', isShow: true, type: 'text' },
                { required: true, label: 'Listing 曝光量', key: 'listing_impression_total', isShow: false, type: 'text' },
                { required: true, label: '总点击量', key: 'listing_views_total', isShow: true, type: 'text' },
                { required: true, label: '成交数量', key: 'transaction', isShow: true, type: 'text' },
                { required: true, label: '点击率', key: 'click_through_rate', isShow: true, type: 'percentage' },
                { required: true, label: '转化率', key: 'sales_conversion_rate', isShow: true, type: 'percentage' },
                { required: true, label: '报告日期', key: 'start_date', isShow: true, type: 'date' },
                { required: true, label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
              ]
            },
            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/UserTrafficReport/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '自增ID', key: 'id', isShow: false, type: 'text' },

            {
              label: '用户', key: 'user_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'user_id',
            },

            { label: '总曝光量', key: 'total_impression_total', isShow: true, type: 'text' },
            { label: 'Listing 曝光量', key: 'listing_impression_total', isShow: false, type: 'text' },
            { label: '总点击量', key: 'listing_views_total', isShow: true, type: 'text' },
            { label: '成交数量', key: 'transaction', isShow: true, type: 'text' },
            { label: '点击率', key: 'click_through_rate', isShow: true, type: 'percentage' },
            { label: '转化率', key: 'sales_conversion_rate', isShow: true, type: 'percentage' },
            { label: '开始时间', key: 'start_date', isShow: true, type: 'date' },
            { label: '结束时间', key: 'end_date', isShow: true, type: 'date' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/UserTrafficReport/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

    // store 流量分析

    {
      name: 'StoreTrafficReport',
      tableName: 'StoreTrafficReport',
      data: {
        cardOptions: {
          query_data:{
            url:{
              method:'get',
              api:'/StoreTrafficReport/query/card',
              params:false
            },
          }
        },

        chartOptions: {
          title: {
            text: '店铺曝光量与点击率、转化率分析',
            left: 'center'
          },
          tooltip: {
            trigger: 'axis',
            axisPointer: {
              type: 'cross'
            },
            formatter: function (params) {
              let result = params[0].axisValue + '<br/>';
              params.forEach(p => {
                result += `${p.marker} ${p.seriesName}: ${p.value}${p.seriesName.includes('率') ? '' : ''}<br/>`;
              });
              return result;
            }
          },
          legend: {
            data: ['曝光量', '点击率', '转化率'],
            top: 25,
            left: 'center',
            textStyle: {
              fontSize: 14
            }
          },
          grid: {
            top: 80,
            left: 60,
            right: 60,
            bottom: 60
          },
          xAxis: {
            type: 'category',
            data: [
              "2025-09-25", "2025-09-26", "2025-09-27", "2025-09-28", "2025-09-29",
              "2025-09-30", "2025-10-01", "2025-10-02", "2025-10-03", "2025-10-04",
              "2025-10-05", "2025-10-06", "2025-10-07", "2025-10-08", "2025-10-09"
            ]
          },
          yAxis: [
            {
              type: 'value',
              name: '曝光量',
              position: 'left',
              axisLine: { lineStyle: { color: '#e4941cff' } },
              splitLine: { show: false }
            },
            {
              type: 'value',
              name: '比率',
              position: 'right',
              axisLine: { lineStyle: { color: '#5470C6' } },
              min: 0,
              max: 1,
              splitLine: { show: false }
            }
          ],
          series: [
            {
              name: '曝光量',
              type: 'bar',
              yAxisIndex: 0,
              data: [320, 280, 350, 400, 380, 420, 460, 440, 410, 390, 370, 400, 430, 450, 470],
              itemStyle: { color: '#e4941cff' },
              barWidth: 20
            },
            {
              name: '点击率',
              type: 'line',
              yAxisIndex: 1,
              smooth: true,
              itemStyle: { color: '#5470C6' },
              data: [0.32, 0.28, 0.35, 0.40, 0.38, 0.42, 0.46, 0.44, 0.41, 0.39, 0.37, 0.40, 0.43, 0.45, 0.47]
            },
            {
              name: '转化率',
              type: 'line',
              yAxisIndex: 1,
              smooth: true,
              itemStyle: { color: '#91CC75' },
              data: [0.18, 0.20, 0.15, 0.22, 0.25, 0.27, 0.30, 0.28, 0.24, 0.21, 0.23, 0.26, 0.29, 0.31, 0.27]
            }
          ],

          url:{
            method:'get',
            api:'/StoreTrafficReport/query/chart',
            params:false
          }

        },


        TopConfig: {
          data: [
            {
              type:'select',
              key:'store',
              default:'请选择店铺',
              required: false,
              placeholder:'请选择店铺',
              url:{
                api:'/EbayStore/query/all',
                method:'get',
                map:{
                  value: 'store_name',
                  key: 'store_name'
                }
              }
            },
            {
              type: 'input-group',
              width: 360,
              value: [
                {
                  type: 'select', key: 'time', default: 0, placeholder: '请选择', data: [
                    { name: '统计时间', value: 0 },
                  ],
                  isShow: false
                },
                { type: 'date', key: 'search_start', default: '', placeholder: '开始时间', use_between: true },
                { type: 'date', key: 'search_end', default: '', placeholder: '结束时间' },
              ]
            },

            {
              type: 'input-group',
              width: 480,
              value: [
                {
                  type: 'select', key: 'ti', default: 0, placeholder: '请选择关系', data: [
                    { name: '并且(曝光)', value: 0 },
                    { name: '或者(曝光)', value: 1 },
                  ]
                },
                { type: 'text', key: 'ti_min', default: '', placeholder: '最小值', use_between: true },
                { type: 'text', key: 'ti_max', default: '', placeholder: '最大值' },
              ]
            },

            {
              type: 'input-group',
              width: 480,
              value: [
                {
                  type: 'select', key: 'c', default: 0, placeholder: '请选择关系', data: [
                    { name: '并且(点击率)', value: 0 },
                    { name: '或者(点击率)', value: 1 },
                  ]
                },
                { type: 'text', key: 'c_min', default: '', placeholder: '最小值', use_between: true },
                { type: 'text', key: 'c_max', default: '', placeholder: '最大值' },
              ]
            },


            {
              type: 'input-group',
              width: 480,
              value: [
                {
                  type: 'select', key: 's', default: 0, placeholder: '请选择关系', data: [
                    { name: '并且(转化率)', value: 0 },
                    { name: '或者(转化率)', value: 1 },
                  ]
                },
                { type: 'text', key: 's_min', default: '', placeholder: '最小值', use_between: true },
                { type: 'text', key: 's_max', default: '', placeholder: '最大值' },
              ]
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/StoreTrafficReport/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/StoreTrafficReport/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '店铺名称', key: 'store', isShow: true, type: 'text' },
            { label: '自增ID', key: 'id', isShow: false, type: 'text' },
            { label: '总曝光量', key: 'total_impression_total', isShow: true, type: 'text' },
            { label: 'Listing 曝光量', key: 'listing_impression_total', isShow: false, type: 'text' },
            { label: '总点击量', key: 'listing_views_total', isShow: true, type: 'text' },
            { label: '成交数量', key: 'transaction', isShow: true, type: 'text' },
            { label: '点击率', key: 'click_through_rate', isShow: true, type: 'percentage' },
            { required: true, label: '转化率', key: 'sales_conversion_rate', isShow: true, type: 'percentage' },
            { required: true, label: '开始时间', key: 'start_date', isShow: true, type: 'date' },
            { required: true, label: '结束时间', key: 'end_date', isShow: true, type: 'date' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/StoreTrafficReport/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },


    {
      name: "系统用户",
      tableName: 'user',
      data: {
        // 头部输入及按钮配置项
        TopConfig: {
          data: [{
            default: '',
            required: false,
            key: 'userName',
            placeholder: '请输入用户名称',
          },
          {
            default: '',
            required: false,
            key: 'email',
            placeholder: '请输入用户邮箱',
          },
          {
            default: '',
            required: false,
            key: 'email',
            placeholder: '请输入用户电话',
          },
            // {
            //   default: '',
            //   type: 'select',
            //   default: -1,
            //   required: false,
            //   key: 'ifOperator',
            //   data: [
            //     { value: -1, name: '全部' },
            //     { value: 'false', name: '访问人员' },
            //     { value: 'true', name: '管理人员' }
            //   ]
            // },
            // {
            //   default: '',
            //   type: 'select',
            //   default: -1,
            //   required: false,
            //   key: 'status',
            //   data: [
            //     { value: -1, name: '全部' },
            //     { value: 'false', name: '冻结' },
            //     { value: 'true', name: '正常' }
            //   ]
            // },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/users/list/sys',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },
            // 添加按钮
            {
              isShow: true,
              label: '添加',
              ifDialog: true,
              style: 'success',
              url: {
                method: 'post',
                api: '/users/register'
              },
              dialogConfig: [
                {
                  default: '',
                  placeholder: '请输入名称',
                  label: '用户名称',
                  key: 'userName',
                  required: true,
                  isShow: true,
                },
                {
                  default: [],
                  placeholder: '选择成员',
                  label: '选择成员',
                  key: 'members',
                  required: true,
                  isShow: true,
                  multiple: true,
                  type: 'select',
                  url: {
                    api: '/SysUser/all',
                    method: 'get',
                    map: {
                      value: 'user_name',
                      name: 'user_id'
                    }
                  },
                },
                {
                  default: '',
                  placeholder: '请输入电话',
                  label: '用户电话',
                  key: 'phone',
                  required: true,
                  isShow: true,
                },
                {
                  default: '',
                  placeholder: '请输入邮箱',
                  label: '用户邮箱',
                  key: 'email',
                  required: false,
                  isShow: true,
                },
                {
                  default: '',
                  type: 'select',
                  placeholder: '请选择公司',
                  label: '选择公司',
                  key: 'companyId',
                  url: {
                    api: '/companys/get_all',
                    method: 'get',
                    map: {
                      value: 'companyName',
                      name: 'id'
                    }
                  },
                  required: true,
                  isShow: true,
                },
                // {
                //   default: false,
                //   type: 'select',
                //   placeholder: '是否管理人员',
                //   label: '管理人员?',
                //   key: 'ifOperator',
                //   data: [
                //     { value: false, name: '访问人员' }, { value: true, name: '管理人员' }
                //   ],
                //   required: true,
                //   isShow: true,
                // },

                // {
                //   default: '',
                //   type: 'select',
                //   multiple: true,
                //   placeholder: '请选择权限',
                //   label: '选择权限',
                //   key: 'rank',
                //   url: {
                //     api: '/types/public_type/get_all',
                //     method: 'get',
                //     map: {
                //       value: 'typeName',
                //       name: 'id'
                //     }
                //   },
                //   required: true,
                //   isShow: true,
                // },
                {
                  key: 'userIcon',
                  type: 'image',
                  url: { api: '/users/common/upload' }, max: 1,
                  placeholder: '用户头像',
                  label: '用户头像',
                  isShow: true,
                  required: false
                },
              ],
            }
          ]
        },

        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '', key: 'id', isShow: false, type: 'number' },
            { label: '用户名称', key: 'userName', isShow: true, },
            { label: '所属公司', key: 'company.companyName', isShow: true, },
            { label: '用户头像', key: 'userIcon', isShow: true, type: 'image' },
            { label: '加入时间', key: 'registerTime', isShow: true, type: 'date' },
            { label: '邮箱', key: 'email', isShow: true, },
            { label: '联系电话', key: 'phone', isShow: true, },
            {
              label: '成员', key: 'members', width: '400px', isShow: true, type: 'select', multiple: true, url: { api: '/SysUser/all', method: 'get', map: { name: 'user_id', value: 'user_name' } }
            },
            // { label: '状态', key: 'status', isShow: true, type: 'select', data: [{ value: true, name: '正常' }, { value: false, name: '已冻结' }] },
            { label: '系统人员', key: 'ifOperator', isShow: true, type: 'select', data: [{ value: false, name: '单身份用户' }, { value: true, name: '多身份用户' }] },
          ],
          btn: [
            /**
             * 无须区分每个btn 的作用,因为每个btn都单独对应自己的url,仅需设置ifDialog来表示是否显示对应的弹框即可
             * 每个dialog必须配置该dilog对应的字段值, 当点击dialog的ok时实际触发的是改btn的url
             */
            {
              label: '修改',
              style: 'primary',
              ifDialog: true,
              dialogConfig: [
                {
                  default: '',
                  placeholder: '请输入用户名称',
                  label: '用户名称',
                  key: 'userName',
                  required: true,
                  isShow: true,
                },
                {
                  default: '',
                  placeholder: '请输入电话',
                  label: '用户电话',
                  key: 'phone',
                  required: true,
                  isShow: true,
                },
                {
                  default: '',
                  placeholder: '请输入邮箱',
                  label: '用户邮箱',
                  key: 'email',
                  required: true,
                  isShow: true,
                },
                {
                  default: [],
                  placeholder: '选择成员',
                  label: '选择成员',
                  key: 'members',
                  required: true,
                  isShow: true,
                  multiple: true,
                  type: 'select',
                  url: {
                    api: '/SysUser/all',
                    method: 'get',
                    map: {
                      value: 'user_name',
                      name: 'user_id'
                    }
                  },
                },
                // {
                //   default: '',
                //   placeholder: '是否系统用户',
                //   label: '系统用户?',
                //   type: "select",
                //   key: 'ifOperator',
                //   data: [{ value: true, name: '系统用户' }, { value: false, name: '访问人员' }],
                //   required: true,
                //   isShow: true,
                // },
                {
                  default: '',
                  key: 'id',
                  required: true,
                  isShow: false,
                },
                {
                  key: 'userIcon',
                  type: 'image',
                  url: { api: '/users/common/upload' }, max: 1,
                  placeholder: '用户头像',
                  label: '用户头像',
                  isShow: true,
                  required: false
                },
              ],
              url: {
                method: 'post',
                api: '/users/reInfo',
                path: []
              }
            },
            // {
            //   label: '冻结',
            //   style: 'warning',
            //   showVerfiy: {
            //     key: 'status',
            //     value: true
            //   },
            //   url: {
            //     method: 'get',
            //     api: '/users/freeze',
            //     path: [{
            //       index: 1,
            //       key: 'id',
            //       required: true
            //     }]
            //   }
            // },
            // {
            //   label: '解冻',
            //   style: 'success',
            //   showVerfiy: {
            //     key: 'status',
            //     value: false
            //   },
            //   url: {
            //     method: 'get',
            //     api: '/users/freeze',
            //     path: [{
            //       index: 1,
            //       key: 'id',
            //       required: true
            //     }]
            //   }
            // },
            {
              label: '删除',
              style: 'danger',
              url: {
                method: 'get',
                api: '/users/delete',
                path: [{
                  index: 1,
                  key: 'id',
                  required: true
                }]
              }
            }
          ],
        },
        url: {
          method: 'get',
          api: '/users/list/sys',
          pageSize: 20,
          params: [
            { key: "cmx", value: 123 },
            { key: "cmx123", value: 123 }
          ]
        }
      },
    },

    // ebay_MapCompeteListing

    {
      name: 'ebay_MapCompeteListing',
      tableName: 'ebay_MapCompeteListing',
      data: {
        TopConfig: {
          data: [
            { required: true, default: '', label: '库存sku', placeholder: "库存sku:", key: 'sku', isShow: true, type: 'text' },
            {
              required: true,
              type: 'select',
              default: '',
              placeholder: '时间周期',
              data: [
                { name: '1个月', value: 1 },
                { name: '3个月', value: 3 },
                { name: '6个月', value: 6 },
              ],
              key: 'time_interval',
              placeholder: '时间周期',
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/bpi/ebay/bl/get_analysis_data',
                path: []
              }
            }
          ]
        },

        // table 每个字段及其类型
        tableColumn: {
          column: [


            { label: '平均价格', key: 'avg_fixed_price', isShow: true, type: 'text' },
            { label: 'itemid', key: 'itemid', isShow: true, type: 'text' },

            { label: '最近出售时间', key: 'last_occur_datetime', isShow: true, type: 'date' },

            { label: '总数', key: 'total_quantity', isShow: true, type: 'text' },

            { label: '周期数', key: 'transaction_count', isShow: true, type: 'text' },

          ],

        },
        url: {
          method: 'get',
          api: '/bpi/ebay/bl/sku/current/list',
          pageSize: 20,
          params: [
          ]
        }
      },
    },
    // MapCompeteListing
    {
      name: 'MapCompeteListing',
      tableName: 'MapCompeteListing',
      data: {
        TopConfig: {
          data: [
            // {required: false, label: '我们的listing', placeholder:"我们的listing:", key: 'our_listing_id', isShow: true, type:'text'},
            // {required: false, label: '商品sku', key: 'our_product_id', isShow: true, type:'text'},
            { required: false, default: '', label: '竞品lisitng', placeholder: "竞品lisitng", key: 'index_listing_id', isShow: true, type: 'text' },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/MapCompeteListing/query/1',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 20, required: true }
                ],
                params: [

                ]
              }
            },

            {
              isShow: true,
              label: '添加',
              style: 'success',
              ifDialog: true,
              url: {
                method: 'post',
                api: '/MapCompeteListing/add'
              },
              dialogConfig: [
                { required: false, label: '我们的listing', key: 'our_listing_id', isShow: false, type: 'text', default: "" },
                { required: false, label: '商品sku', key: 'our_product_id', isShow: false, type: 'text', default: "" },
                { required: true, label: '竞品lisitng', key: 'listing_id', isShow: true, type: 'text' },
                { required: false, label: '描述(作用)', key: 'describe', isShow: true, type: 'textarea', max: 25 },
              ]
            },


            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/MapCompeteListing/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '自增ID,唯一标识一条记录', key: 'id', isShow: false, type: 'text' },
            { label: '我们的listing', key: 'our_listing_id', isShow: false, type: 'text' },
            { label: '标题', key: 'compete_info.title', isShow: true, type: 'text', clickEvent: row => { window.open(`https://www.ebay.com/itm/${row.listing_id}`) } },
            { label: '商品sku', key: 'our_product_id', isShow: false, type: 'text', },
            {
              label: '竞品lisitng', key: 'listing_id', isShow: true, type: 'text',
              after: {
                text: row => { return '详情' },
                style: 'color:#409eff;cursor:pointer;padding-left:3px',
                use_tablebtn_event: {
                  ifComponent: true,
                  component_dialog: {
                    title: "选品-竞品listing分析",
                    component: import("../../components/CustomComponents/compete_dialog.vue"),
                    width: "90%"
                  }
                },
              }
            },
            { label: '状态', minWidth: '100px', key: 'compete_info.condition', isShow: true, type: 'text' },
            { label: '总售出数量', minWidth: '100px', key: 'compete_info.estimated_sold_quantity', isShow: true, type: 'text' },
            { label: '主图', key: 'compete_info.image_url', isShow: true, type: 'image', clickEvent: row => { window.open(`${row.compete_info.image_url}`) } },

            { label: '当前价格', minWidth: "100px", key: 'compete_info.price_value', isShow: true, type: 'text' },
            { label: '描述(作用)', key: 'describe', isShow: true, type: 'text' },
            { label: '监控开始时间', key: 'date', isShow: true, type: 'date' },
            { label: '创建者', key: 'niceName', isShow: true, type: 'text' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [

            {
              label: '修改',
              style: 'primary',
              ifDialog: true,
              dialogConfig: [
                { required: false, label: '自增ID,唯一标识一条记录', key: 'id', isShow: false, type: 'text' },
                { required: true, label: '我们的listing', key: 'our_listing_id', isShow: false, type: 'text' },
                { required: true, label: '商品sku', key: 'our_product_id', isShow: false, type: 'text' },
                { required: true, label: '竞品lisitng', key: 'listing_id', isShow: false, type: 'text' },
                { required: true, label: '描述(作用)', key: 'describe', isShow: true, type: 'text' },
              ],
              url: {
                method: 'post',
                api: '/MapCompeteListing/update',
                path: []
              }
            },
            {
              label: '删除',
              style: 'danger',
              url: {
                method: 'get',
                api: '/MapCompeteListing/delete',
                path: [{
                  index: 1,
                  key: 'id',
                  required: true
                }]
              }
            },
            {
              label: "详情",
              style: 'warning',
              ifComponent: true,
              component_dialog: {
                title: "选品-竞品listing分析",
                component: import("../../components/CustomComponents/compete_dialog.vue"),
                width: "90%"
              }
            }
          ],
        },
        url: {
          method: 'get',
          api: '/MapCompeteListing/query/1',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

    // lisitng_MapCompeteListing
    {
      name: 'lisitng_MapCompeteListing',
      tableName: 'lisitng_MapCompeteListing',
      data: {
        TopConfig: {
          data: [
            { required: false, default: '', label: '我们的listing', placeholder: "我们的listing:", key: 'our_listing_id', isShow: true, type: 'text' },
            // {required: false, label: '商品sku', key: 'our_product_id', isShow: true, type:'text'},
            { required: false, default: '', label: '竞品lisitng', placeholder: "竞品lisitng", key: 'listing_id', isShow: true, type: 'text' },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/MapCompeteListing/query/2',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 20, required: true }
                ],
                params: [

                ]
              }
            },

            {
              isShow: true,
              label: '添加',
              style: 'success',
              ifDialog: true,
              url: {
                method: 'post',
                api: '/MapCompeteListing/add'
              },
              dialogConfig: [
                { required: true, label: '我们的listing', key: 'our_listing_id', isShow: true, type: 'text', default: "" },
                { required: false, label: '商品sku', key: 'our_product_id', isShow: false, type: 'text', default: "" },
                { required: true, label: '竞品lisitng', key: 'listing_id', isShow: true, type: 'textarea', max: 200, placeholder: "回车以输入更多竞品listing_id" },
                { required: false, label: '描述(作用)', key: 'describe', isShow: true, type: 'textarea', max: 25 },
              ]
            },
            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/MapCompeteListing/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '自增ID,唯一标识一条记录', key: 'id', isShow: false, type: 'text' },
            { label: '标题', key: 'our_info.0.title', isShow: true, type: 'text', clickEvent: row => { window.open(`https://www.ebay.com/itm/${row.our_listing_id}`) } },
            {
              label: 'listing_id', key: 'our_listing_id', isShow: true, type: 'text',
              after: {
                text: row => { return '详情' },
                style: 'color:#409eff;cursor:pointer;padding-left:3px',
                use_tablebtn_event: {
                  ifComponent: true,
                  component_dialog: {
                    title: "选品-竞品listing分析",
                    component: import("../../components/CustomComponents/compete_dialog.vue"),
                    width: "90%"
                  }
                },
              }

            },
            { label: '平台sku', key: 'our_info.0.paltfrom_sku', isShow: true, type: 'text' },
            { label: '价格', key: 'our_info.0.price_value', isShow: true, type: 'text' },
            { label: '店铺', key: 'our_info.0.seller_name', isShow: true, type: 'text' },
            { label: '上架时间', key: 'our_info.0.item_creation_date', isShow: true, type: 'date' },
            { label: '主图', key: 'our_info.0.image_url', isShow: true, type: 'image' },


            { label: '商品sku', key: 'our_product_id', isShow: false, type: 'text' },
            {
              label: '竞品lisitng', key: 'compete_info', minWidth: '320px', isShow: true, type: 'list_show',
              btn: [
                {
                  label: '删除',
                  style: 'color:red;',
                  // 注意操作内嵌表格可能需要去外部scope 拿数据加到内部的row, 需要在这里parent_row_map_to_row映射，不然path 会无法解析到对应的数据
                  // 这里是拿外部一行的id给内部表格，不然无法定位这一行数据的id
                  parent_row_map_to_row: [
                    { parent: 'id', children: 'id' }
                  ],

                  url: {
                    method: 'get',
                    api: '/MapCompeteListing/delete',
                    path: [{
                      index: 1,
                      key: 'id',
                      required: true
                    }, {
                      index: 2,
                      key: 'listing_id',
                      required: true
                    }]
                  }
                },
              ],
              column: [
                {
                  key: "listing_id",
                  label: '竞品',
                  minWidth: '110px',
                  clickEvent: row => { window.open(`https://www.ebay.com/itm/${row.listing_id}`) }
                },
                {
                  key: "condition",
                  label: '状态',
                  minWidth: '60px'
                },
                {
                  key: "price_value",
                  label: '价格',
                  minWidth: '60px'
                }
              ],
            },
            { label: '描述(作用)', key: 'describe', isShow: true, type: 'text' },
            { label: '创建时间', key: 'date', isShow: true, type: 'date' },
            { label: '创建者', key: 'niceName', isShow: true, type: 'text' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [

            {
              label: '修改',
              style: 'primary',
              ifDialog: true,
              dialogConfig: [
                { required: false, label: '自增ID,唯一标识一条记录', key: 'id', isShow: false, type: 'text' },
                { required: false, label: '描述(作用)', key: 'describe', isShow: true, type: 'text' },
              ],
              url: {
                method: 'post',
                api: '/MapCompeteListing/update',
                path: []
              }
            },
            {
              label: '删除',
              style: 'danger',
              url: {
                method: 'get',
                api: '/MapCompeteListing/delete',
                path: [{
                  index: 1,
                  key: 'id',
                  required: true
                }]
              }
            },
            {
              label: "详情",
              style: 'warning',
              ifComponent: true,
              component_dialog: {
                title: "选品-竞品listing分析",
                component: import("../../components/CustomComponents/compete_dialog.vue"),
                width: "90%"
              }
            }
          ],
        },
        url: {
          method: 'get',
          api: '/MapCompeteListing/query/2',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

    // product_MapCompeteListing
    {
      name: 'product_MapCompeteListing',
      tableName: 'product_MapCompeteListing',
      data: {
        TopConfig: {
          data: [
            // {required: false, label: '我们的listing', placeholder:"我们的listing:", key: 'our_listing_id', isShow: true, type:'text'},
            { required: false, default: '', placeholder: "商品sku", label: '商品sku', key: 'our_product_id', isShow: true, type: 'text' },
            { required: false, default: '', label: '竞品lisitng', placeholder: "竞品lisitng", key: 'listing_id', isShow: true, type: 'text' },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/MapCompeteListing/query/3',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 20, required: true }
                ],
                params: [

                ]
              }
            },

            {
              isShow: true,
              label: '添加',
              style: 'success',
              ifDialog: true,
              url: {
                method: 'post',
                api: '/MapCompeteListing/add'
              },
              dialogConfig: [
                { required: false, label: '我们的listing', key: 'our_listing_id', isShow: false, type: 'text', default: "" },
                { required: true, label: '商品sku', key: 'our_product_id', isShow: true, type: 'text', default: "" },
                { required: true, label: '竞品lisitng', key: 'listing_id', isShow: true, type: 'textarea', max: 200, placeholder: "回车以输入更多竞品listing_id" },
                { required: false, label: '描述(作用)', key: 'describe', isShow: true, type: 'textarea', max: 25 },
              ]
            },


            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/MapCompeteListing/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {

          column: [
            { label: '自增ID,唯一标识一条记录', key: 'id', isShow: false, type: 'text' },
            { label: '最近listing标题', key: 'our_info.0.title', isShow: true, type: 'text', clickEvent: row => { window.open(`https://www.ebay.com/itm/${row.our_info[0].listing_id}`) } },
            {
              label: '平台sku', key: 'our_info.0.paltfrom_sku', isShow: true, type: 'text',

              after: {
                text: row => { return '详情' },
                style: 'color:#409eff;cursor:pointer;padding-left:3px',
                use_tablebtn_event: {
                  ifComponent: true,
                  component_dialog: {
                    title: "选品-竞品listing分析",
                    component: import("../../components/CustomComponents/compete_dialog.vue"),
                    width: "90%"
                  }
                },
              }
            },
            { label: 'listing 数量', key: 'our_info.0.total_count', isShow: true, type: 'text' },
            { label: '最近上架时间', key: 'our_info.0.item_creation_date', isShow: true, type: 'date' },
            { label: '主图', key: 'our_info.0.image_url', isShow: true, type: 'image' },
            {
              label: '竞品lisitng', key: 'compete_info', minWidth: '320px', isShow: true, type: 'list_show',
              btn: [
                {
                  label: '删除',
                  style: 'color:red;',
                  // 注意操作内嵌表格可能需要去外部scope 拿数据加到内部的row, 需要在这里parent_row_map_to_row映射，不然path 会无法解析到对应的数据
                  // 这里是拿外部一行的id给内部表格，不然无法定位这一行数据的id
                  parent_row_map_to_row: [
                    { parent: 'id', children: 'id' }
                  ],

                  url: {
                    method: 'get',
                    api: '/MapCompeteListing/delete',
                    path: [{
                      index: 1,
                      key: 'id',
                      required: true
                    }, {
                      index: 2,
                      key: 'listing_id',
                      required: true
                    }]
                  }
                },
              ],
              column: [
                {
                  key: "listing_id",
                  label: '竞品',
                  minWidth: '110px',
                  clickEvent: row => { window.open(`https://www.ebay.com/itm/${row.listing_id}`) }
                },
                {
                  key: "condition",
                  label: '状态',
                  minWidth: '60px'
                },
                {
                  key: "price_value",
                  label: '价格',
                  minWidth: '60px'
                }
              ],
            },
            { label: '描述(作用)', key: 'describe', isShow: true, type: 'text' },
            { label: '创建时间', key: 'date', isShow: true, type: 'date' },
            { label: '创建者', key: 'niceName', isShow: true, type: 'text' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [

            {
              label: '修改',
              style: 'primary',
              ifDialog: true,
              dialogConfig: [
                { required: true, label: '自增ID,唯一标识一条记录', key: 'id', isShow: false, type: 'text' },
                { required: false, label: '描述(作用)', key: 'describe', isShow: true, type: 'text' },
              ],
              url: {
                method: 'post',
                api: '/MapCompeteListing/update',
                path: []
              }
            },
            {
              label: '删除',
              style: 'danger',
              url: {
                method: 'get',
                api: '/MapCompeteListing/delete',
                path: [{
                  index: 1,
                  key: 'id',
                  required: true
                }]
              }
            },
            {
              label: "详情",
              style: 'warning',
              ifComponent: true,
              component_dialog: {
                title: "选品-竞品listing分析",
                component: import("../../components/CustomComponents/compete_dialog.vue"),
                width: "90%"
              }
            }
          ],
        },
        url: {
          method: 'get',
          api: '/MapCompeteListing/query/3',
          pageSize: 20,
          params: [
          ]
        }
      },
    },


    {
      name: 'product_aver_analyze',
      tableName: 'product_aver_analyze',
      data: {
        TopConfig: {
          data: [
            // {required: false, label: '我们的listing', placeholder:"我们的listing:", key: 'our_listing_id', isShow: true, type:'text'},
            { required: false, default: '', placeholder: "商品sku", label: '商品sku', key: 'our_product_id', isShow: true, type: 'text' },
            { required: false, default: '', label: '竞品lisitng', placeholder: "竞品lisitng", key: 'listing_id', isShow: true, type: 'text' },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/MapCompeteListing/query/3',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 20, required: true }
                ],
                params: [

                ]
              }
            },

            {
              isShow: true,
              label: '添加',
              style: 'success',
              ifDialog: true,
              url: {
                method: 'post',
                api: '/MapCompeteListing/add'
              },
              dialogConfig: [
                { required: false, label: '我们的listing', key: 'our_listing_id', isShow: false, type: 'text', default: "" },
                { required: true, label: '商品sku', key: 'our_product_id', isShow: true, type: 'text', default: "" },
                { required: true, label: '竞品lisitng', key: 'listing_id', isShow: true, type: 'textarea', max: 200, placeholder: "回车以输入更多竞品listing_id" },
                { required: false, label: '描述(作用)', key: 'describe', isShow: true, type: 'textarea', max: 25 },
              ]
            },


            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/MapCompeteListing/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {

          column: [
            { label: '自增ID,唯一标识一条记录', key: 'id', isShow: false, type: 'text' },
            { label: '最近listing标题', key: 'our_info.0.title', isShow: true, type: 'text', clickEvent: row => { window.open(`https://www.ebay.com/itm/${row.our_info[0].listing_id}`) } },
            {
              label: '平台sku', key: 'our_info.0.paltfrom_sku', isShow: true, type: 'text',

              after: {
                text: row => { return '详情' },
                style: 'color:#409eff;cursor:pointer;padding-left:3px',
                use_tablebtn_event: {
                  ifComponent: true,
                  component_dialog: {
                    title: "选品-竞品listing分析",
                    component: import("../../components/CustomComponents/aver_analyze_dialog.vue"),
                    width: "90%"
                  }
                },
              }
            },
            { label: 'listing 数量', key: 'our_info.0.total_count', isShow: true, type: 'text' },
            { label: '最近上架时间', key: 'our_info.0.item_creation_date', isShow: true, type: 'date' },
            { label: '主图', key: 'our_info.0.image_url', isShow: true, type: 'image' },




            {
              label: '均值分析', key: 'info_dict', minWidth: 300, isShow: true, type: 'row_many', column: 2,
              map: [

                [
                  {
                    label: '我方加权价',
                    key: 'our_weighted_avg_price'
                  },
                  {
                    label: '我方均价',
                    key: 'our_avg_price'
                  },
                  {
                    label: '我方销量',
                    key: 'our_sell_counts'
                  },
                  {
                    label: '我方占比',
                    key: 'our_counts_percent'
                  },
                ],
                [{
                  label: '竞品加权价',
                  key: 'compete_weighted_avg_price'
                },
                {
                  label: '竞品均价',
                  key: 'compete_avg_price'
                },
                {
                  label: '竞品销量',
                  key: 'compete_sell_counts'
                },
                {
                  label: '竞品占比',
                  key: 'compete_counts_percent'
                },
                ]
              ]
            },

            {
              label: '竞品lisitng', key: 'compete_info', minWidth: '380px', isShow: true, type: 'list_show',
              btn: [
                {
                  label: '删除',
                  style: 'color:red;',
                  // 注意操作内嵌表格可能需要去外部scope 拿数据加到内部的row, 需要在这里parent_row_map_to_row映射，不然path 会无法解析到对应的数据
                  // 这里是拿外部一行的id给内部表格，不然无法定位这一行数据的id
                  parent_row_map_to_row: [
                    { parent: 'id', children: 'id' }
                  ],

                  url: {
                    method: 'get',
                    api: '/MapCompeteListing/delete',
                    path: [{
                      index: 1,
                      key: 'id',
                      required: true
                    }, {
                      index: 2,
                      key: 'listing_id',
                      required: true
                    }]
                  }
                },
              ],
              column: [
                {
                  key: "listing_id",
                  label: '竞品',
                  minWidth: '110px',
                  clickEvent: row => { window.open(`https://www.ebay.com/itm/${row.listing_id}`) }
                },
                {
                  key: "condition",
                  label: '状态',
                  minWidth: '60px'
                },
                {
                  key: "price_value",
                  label: '价格',
                  minWidth: '60px'
                },
                {
                  key: "new_sell_count",
                  label: '今日销量',
                  minWidth: '70px'
                }
              ],
            },
            { label: '描述(作用)', key: 'describe', isShow: true, type: 'text' },
            { label: '创建时间', key: 'date', isShow: true, type: 'date' },
            { label: '创建者', key: 'niceName', isShow: true, type: 'text' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [

            {
              label: '修改',
              style: 'primary',
              ifDialog: true,
              dialogConfig: [
                { required: true, label: '自增ID,唯一标识一条记录', key: 'id', isShow: false, type: 'text' },
                { required: false, label: '描述(作用)', key: 'describe', isShow: true, type: 'text' },
              ],
              url: {
                method: 'post',
                api: '/MapCompeteListing/update',
                path: []
              }
            },
            {
              label: '删除',
              style: 'danger',
              url: {
                method: 'get',
                api: '/MapCompeteListing/delete',
                path: [{
                  index: 1,
                  key: 'id',
                  required: true
                }]
              }
            },
            {
              label: "详情",
              style: 'warning',
              ifComponent: true,
              component_dialog: {
                title: "选品-竞品listing分析",
                component: import("../../components/CustomComponents/compete_dialog.vue"),
                width: "90%"
              }
            }
          ],
        },
        url: {
          method: 'get',
          api: '/MapCompeteListing/query/3',
          pageSize: 20,
          params: [
          ]
        }
      },
    },


    //  ebay store

    {
      name: 'EbayStore',
      tableName: 'EbayStore',
      data: {
        TopConfig: {
          data: [
            { required: false, default: '', placeholder: "店铺名称", label: '店铺名称', key: 'store_name', isShow: true, type: 'text' },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/EbayStore/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '授权新店铺',
              style: 'success',
              ifDialog: false,
              open: true,
              url: {
                method: 'get',
                api: '/EbayStore/generate_ebay_oauth_link'
              }
            },


            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/EbayStore/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '唯一标识店铺的 UUID', key: 'uuid', isShow: false, type: 'text' },
            { label: '系统用户ID', key: 'user_id', isShow: false, type: 'text' },
            { label: 'eBay 店铺名称', key: 'store_name', isShow: true, type: 'text' },
            { label: 'eBay 用户名', key: 'seller_username', isShow: true, type: 'text', clickEvent: row => { window.open(`${row.store_url}`) } },
            { label: 'eBay 用户邮箱', key: 'email', isShow: true, type: 'text' },
            { label: '反馈分数', key: 'feedback_score', isShow: true, type: 'text' },
            { label: '正面反馈数', key: 'positive_feedback', isShow: true, type: 'text' },
            { label: '负面反馈数', key: 'negative_feedback', isShow: true, type: 'text' },
            { label: '中性反馈数', key: 'neutral_feedback', isShow: true, type: 'text' },
            { label: '正面反馈百分比', key: 'feedback_percent', isShow: true, type: 'text' },
            { label: '注册时间', key: 'registration_date', isShow: true, type: 'date' },
            { label: '注册站点', key: 'site', isShow: true, type: 'text' },
            { label: 'eBay 店铺 URL', key: 'store_url', isShow: true, type: 'text' },
            { label: '店铺所属站点', key: 'store_site', isShow: true, type: 'text' },

            { label: '卖家业务类型', key: 'seller_business_type', isShow: true, type: 'text' },
            { label: 'Business Role', key: 'business_role', isShow: true, type: 'text' },
            { label: '是否为Top Rated卖家', key: 'is_top_rated_seller', isShow: true, type: 'text' },
            { label: 'TopRated计划', key: 'top_rated_program', isShow: true, type: 'text' },
            { label: '订阅服务（逗号分隔）', key: 'subscriptions', isShow: false, type: 'text' },
            { label: '用户订阅（逗号分隔）', key: 'user_subscriptions', isShow: false, type: 'text' },
            { label: 'access_token', key: 'access_token', isShow: false, type: 'text' },
            { label: 'refresh_token', key: 'refresh_token', isShow: false, type: 'text' },
            { label: 'refresh_token 过期时间', key: 'refresh_token_expires_in', isShow: true, type: 'date' },
            { label: '授权 scope 列表（空格分隔）', key: 'scopes', isShow: false, type: 'text' },
            {
              label: '是否为 Sandbox 环境', key: 'is_sandbox', isShow: true, type: 'select', data: [
                { name: '是', value: true },
                { name: '否', value: false }
              ]
            },
            {
              label: '是否站点认证', key: 'site_verified', isShow: true, type: 'select', data: [
                { name: '是', value: true },
                { name: '否', value: false }
              ]
            },
            { label: '创建时间', key: 'created_at', isShow: true, type: 'date' },
            { label: '最后更新时间', key: 'updated_at', isShow: true, type: 'date' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
            { label: 'access_token 过期时间', key: 'expires_in', isShow: true, type: 'date' },
          ],
          btn: [

            {
              label: '修改',
              style: 'primary',
              ifDialog: true,
              dialogConfig: [
                { required: true, label: '唯一标识店铺的 UUID', key: 'uuid', isShow: false, type: 'text' },
                { required: true, label: '系统用户ID', key: 'user_id', isShow: false, type: 'text' },
                { required: true, label: 'eBay 用户名', key: 'seller_username', isShow: true, type: 'text' },
                { required: true, label: 'eBay 用户邮箱', key: 'email', isShow: true, type: 'text' },
                { required: true, label: '反馈分数', key: 'feedback_score', isShow: true, type: 'text' },
                { required: true, label: '正面反馈数', key: 'positive_feedback', isShow: true, type: 'text' },
                { required: true, label: '负面反馈数', key: 'negative_feedback', isShow: true, type: 'text' },
                { required: true, label: '中性反馈数', key: 'neutral_feedback', isShow: true, type: 'text' },
                { required: true, label: '正面反馈百分比', key: 'feedback_percent', isShow: true, type: 'text' },
                { required: true, label: '注册时间', key: 'registration_date', isShow: true, type: 'date' },
                { required: true, label: '注册站点', key: 'site', isShow: true, type: 'text' },
                { required: true, label: 'eBay 店铺 URL', key: 'store_url', isShow: true, type: 'text' },
                { required: true, label: '店铺所属站点', key: 'store_site', isShow: true, type: 'text' },
                { required: true, label: 'eBay 店铺名称', key: 'store_name', isShow: true, type: 'text' },
                { required: true, label: '卖家业务类型', key: 'seller_business_type', isShow: true, type: 'text' },
                { required: true, label: 'Business Role', key: 'business_role', isShow: true, type: 'text' },
                { required: true, label: '是否为Top Rated卖家', key: 'is_top_rated_seller', isShow: true, type: 'text' },
                { required: true, label: 'TopRated计划', key: 'top_rated_program', isShow: true, type: 'text' },
                { required: true, label: '订阅服务（逗号分隔）', key: 'subscriptions', isShow: false, type: 'text' },
                { required: true, label: '用户订阅（逗号分隔）', key: 'user_subscriptions', isShow: false, type: 'text' },
                { required: true, label: 'access_token', key: 'access_token', isShow: false, type: 'text' },
                { required: true, label: 'refresh_token', key: 'refresh_token', isShow: false, type: 'text' },
                { required: true, label: 'refresh_token 过期时间', key: 'refresh_token_expires_in', isShow: true, type: 'date' },
                { required: true, label: '授权 scope 列表（空格分隔）', key: 'scopes', isShow: true, type: 'text' },
                { required: true, label: '是否为 Sandbox 环境', key: 'is_sandbox', isShow: true, type: 'text' },
                { required: true, label: '站点认证', key: 'site_verified', isShow: true, type: 'text' },
                { required: true, label: '创建时间', key: 'created_at', isShow: true, type: 'date' },
                { required: true, label: '最后更新时间', key: 'updated_at', isShow: true, type: 'date' },
                { required: true, label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
                { required: true, label: 'access_token 过期时间', key: 'expires_in', isShow: true, type: 'date' },
              ],
              url: {
                method: 'post',
                api: '/EbayStore/update',
                path: []
              }
            },
            {
              label: '删除',
              style: 'danger',
              url: {
                method: 'get',
                api: '/EbayStore/delete',
                path: [{
                  index: 1,
                  key: 'id',
                  required: true
                }]
              }
            }
          ],
        },
        url: {
          method: 'get',
          api: '/EbayStore/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },



    // CompeteEbayListing
    {
      name: 'CompeteEbayListing',
      tableName: 'CompeteEbayListing',
      data: {
        TopConfig: {
          data: [

          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/CompeteEbayListing/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '添加',
              style: 'success',
              ifDialog: true,
              url: {
                method: 'get',
                api: '/CompeteEbayListing/add'
              },
              dialogConfig: [
                { required: true, label: '自增ID,唯一标识一条记录', key: 'id', isShow: false, type: 'text' },
                { required: true, label: '我们的listing', key: 'our_listing_id', isShow: false, type: 'text' },
                { required: true, label: '商品sku', key: 'our_product_id', isShow: false, type: 'text' },
                { required: true, label: '日期', key: 'date', isShow: true, type: 'date' },
                { required: true, label: '竞品lisitng', key: 'listing_id', isShow: false, type: 'text' },
                { required: true, label: '标题', key: 'title', isShow: true, type: 'text' },
                { required: true, label: '价格', key: 'price_value', isShow: true, type: 'text' },
                { required: true, label: '币种', key: 'price_currency', isShow: true, type: 'text' },
                { required: true, label: '类目路径', key: 'category_path', isShow: true, type: 'text' },
                { required: true, label: '类目ID路径', key: 'category_id_path', isShow: false, type: 'text' },
                { required: true, label: '类目ID', key: 'category_id', isShow: false, type: 'text' },
                { required: true, label: '商品状况', key: 'condition', isShow: true, type: 'text' },
                { required: true, label: '状况ID', key: 'condition_id', isShow: false, type: 'text' },
                { required: true, label: '商品所在城市', key: 'item_city', isShow: true, type: 'text' },
                { required: true, label: '商品所在州', key: 'item_state', isShow: true, type: 'text' },
                { required: true, label: '国家代码', key: 'item_country', isShow: true, type: 'text' },
                { required: true, label: '商品图片', key: 'image_url', isShow: true, type: 'text' },
                { required: true, label: '颜色', key: 'color', isShow: true, type: 'text' },
                { required: true, label: '品牌', key: 'brand', isShow: true, type: 'text' },
                { required: true, label: '型号', key: 'model', isShow: true, type: 'text' },
                { required: true, label: '上架时间', key: 'item_creation_date', isShow: true, type: 'date' },
                { required: true, label: '卖家用户名', key: 'seller_username', isShow: true, type: 'text' },
                { required: true, label: '卖家评分', key: 'seller_feedback_score', isShow: true, type: 'text' },
                { required: true, label: '卖家好评率', key: 'seller_feedback_percentage', isShow: true, type: 'text' },
                { required: true, label: '可用库存', key: 'estimated_available_quantity', isShow: true, type: 'text' },
                { required: true, label: '已售数量', key: 'estimated_sold_quantity', isShow: true, type: 'text' },
                { required: true, label: '剩余数量', key: 'estimated_remaining_quantity', isShow: true, type: 'text' },
                { required: true, label: '运费', key: 'shipping_cost', isShow: true, type: 'text' },
                { required: true, label: '每个额外单位运费', key: 'shipping_additional_cost', isShow: true, type: 'text' },
                { required: true, label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
              ]
            },


            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/CompeteEbayListing/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '自增ID,唯一标识一条记录', key: 'id', isShow: false, type: 'text' },
            { label: '我们的listing', key: 'our_listing_id', isShow: false, type: 'text' },
            { label: '商品sku', key: 'our_product_id', isShow: false, type: 'text' },
            { label: '日期', key: 'date', isShow: true, type: 'date' },
            { label: '竞品lisitng', key: 'listing_id', isShow: false, type: 'text' },
            { label: '标题', key: 'title', isShow: true, type: 'text' },
            { label: '价格', key: 'price_value', isShow: true, type: 'text' },
            { label: '币种', key: 'price_currency', isShow: true, type: 'text' },
            { label: '类目路径', key: 'category_path', isShow: true, type: 'text' },
            { label: '类目ID路径', key: 'category_id_path', isShow: false, type: 'text' },
            { label: '类目ID', key: 'category_id', isShow: false, type: 'text' },
            { label: '商品状况', key: 'condition', isShow: true, type: 'text' },
            { label: '状况ID', key: 'condition_id', isShow: false, type: 'text' },
            { label: '商品所在城市', key: 'item_city', isShow: true, type: 'text' },
            { label: '商品所在州', key: 'item_state', isShow: true, type: 'text' },
            { label: '国家代码', key: 'item_country', isShow: true, type: 'text' },
            { label: '商品图片', key: 'image_url', isShow: true, type: 'text' },
            { label: '颜色', key: 'color', isShow: true, type: 'text' },
            { label: '品牌', key: 'brand', isShow: true, type: 'text' },
            { label: '型号', key: 'model', isShow: true, type: 'text' },
            { label: '上架时间', key: 'item_creation_date', isShow: true, type: 'date' },
            { label: '卖家用户名', key: 'seller_username', isShow: true, type: 'text' },
            { label: '卖家评分', key: 'seller_feedback_score', isShow: true, type: 'text' },
            { label: '卖家好评率', key: 'seller_feedback_percentage', isShow: true, type: 'text' },
            { label: '可用库存', key: 'estimated_available_quantity', isShow: true, type: 'text' },
            { label: '已售数量', key: 'estimated_sold_quantity', isShow: true, type: 'text' },
            { label: '剩余数量', key: 'estimated_remaining_quantity', isShow: true, type: 'text' },
            { label: '运费', key: 'shipping_cost', isShow: true, type: 'text' },
            { label: '每个额外单位运费', key: 'shipping_additional_cost', isShow: true, type: 'text' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [

            {
              label: '修改',
              style: 'primary',
              ifDialog: true,
              dialogConfig: [
                { required: true, label: '自增ID,唯一标识一条记录', key: 'id', isShow: false, type: 'text' },
                { required: true, label: '我们的listing', key: 'our_listing_id', isShow: false, type: 'text' },
                { required: true, label: '商品sku', key: 'our_product_id', isShow: false, type: 'text' },
                { required: true, label: '日期', key: 'date', isShow: true, type: 'date' },
                { required: true, label: '竞品lisitng', key: 'listing_id', isShow: false, type: 'text' },
                { required: true, label: '标题', key: 'title', isShow: true, type: 'text' },
                { required: true, label: '价格', key: 'price_value', isShow: true, type: 'text' },
                { required: true, label: '币种', key: 'price_currency', isShow: true, type: 'text' },
                { required: true, label: '类目路径', key: 'category_path', isShow: true, type: 'text' },
                { required: true, label: '类目ID路径', key: 'category_id_path', isShow: false, type: 'text' },
                { required: true, label: '类目ID', key: 'category_id', isShow: false, type: 'text' },
                { required: true, label: '商品状况', key: 'condition', isShow: true, type: 'text' },
                { required: true, label: '状况ID', key: 'condition_id', isShow: false, type: 'text' },
                { required: true, label: '商品所在城市', key: 'item_city', isShow: true, type: 'text' },
                { required: true, label: '商品所在州', key: 'item_state', isShow: true, type: 'text' },
                { required: true, label: '国家代码', key: 'item_country', isShow: true, type: 'text' },
                { required: true, label: '商品图片', key: 'image_url', isShow: true, type: 'text' },
                { required: true, label: '颜色', key: 'color', isShow: true, type: 'text' },
                { required: true, label: '品牌', key: 'brand', isShow: true, type: 'text' },
                { required: true, label: '型号', key: 'model', isShow: true, type: 'text' },
                { required: true, label: '上架时间', key: 'item_creation_date', isShow: true, type: 'date' },
                { required: true, label: '卖家用户名', key: 'seller_username', isShow: true, type: 'text' },
                { required: true, label: '卖家评分', key: 'seller_feedback_score', isShow: true, type: 'text' },
                { required: true, label: '卖家好评率', key: 'seller_feedback_percentage', isShow: true, type: 'text' },
                { required: true, label: '可用库存', key: 'estimated_available_quantity', isShow: true, type: 'text' },
                { required: true, label: '已售数量', key: 'estimated_sold_quantity', isShow: true, type: 'text' },
                { required: true, label: '剩余数量', key: 'estimated_remaining_quantity', isShow: true, type: 'text' },
                { required: true, label: '运费', key: 'shipping_cost', isShow: true, type: 'text' },
                { required: true, label: '每个额外单位运费', key: 'shipping_additional_cost', isShow: true, type: 'text' },
                { required: true, label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
              ],
              url: {
                method: 'post',
                api: '/CompeteEbayListing/update',
                path: []
              }
            },
            {
              label: '删除',
              style: 'danger',
              url: {
                method: 'get',
                api: '/CompeteEbayListing/delete',
                path: [{
                  index: 1,
                  key: 'id',
                  required: true
                }]
              }
            }
          ],
        },
        url: {
          method: 'get',
          api: '/CompeteEbayListing/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

    {
      name: '谷仓库龄',
      tableName: 'ProductInventoryAge',
      data: {
        TopConfig: {
          data: [

            {
              default: '',
              required: false,
              type: 'text',
              key: 'product_sku',
              placeholder: '请输入商品SKU',
            },
            {
              type: 'input-group',
              width: 400,
              value: [
                {
                  type: 'select', key: 'select', default: 0, placeholder: '请选择', data: [
                    { name: '请选择类型', value: 0 },
                    { name: '谷仓库龄', value: 1 },
                    { name: '在库库存', value: 2 },

                  ]
                },
                { type: 'input', key: 'value1', default: '', placeholder: '最小值', use_between: true },
                { type: 'input', key: 'value2', default: '', placeholder: '最大值' },
              ]
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/ProductInventoryAge/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/ProductInventoryAge/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: 'None', key: 'id', isShow: false, type: 'text' },
            { label: '仓库代码', key: 'warehouse_code', isShow: true, type: 'text' },
            { label: '仓库名称', key: 'warehouse_desc', isShow: true, type: 'text' },
            { label: '商品SKU', key: 'product_sku', isShow: true, type: 'text' },
            { label: '商品中文名称', key: 'product_title', isShow: true, type: 'text' },
            { label: '商品英文名称', key: 'product_title_en', isShow: true, type: 'text' },
            { label: '在库库存', key: 'iba_quantity', isShow: true, type: 'text' },
            { label: '上架时间（北京时间）', key: 'iba_fifo_time', isShow: true, type: 'text' },
            { label: '预警库龄', key: 'iba_warning_age', isShow: true, type: 'text' },
            { label: '当前库龄', key: 'warehouse_age', isShow: true, type: 'text' },
            { label: '过期日期', key: 'expiration_date', isShow: false, type: 'text' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/ProductInventoryAge/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },
    {
      name: '谷仓产品',
      tableName: 'AlembicVersion',
      data: {
        TopConfig: {
          data: [

          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/AlembicVersion/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/AlembicVersion/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: 'None', key: 'version_num', isShow: true, type: 'text' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/AlembicVersion/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },
    {
      name: '谷仓提货订单',
      tableName: 'GcOrder',
      data: {
        TopConfig: {
          data: [

          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/GcOrder/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/GcOrder/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '主键 ID', key: 'id', isShow: false, type: 'text' },
            { label: '订单号', key: 'order_code', isShow: true, type: 'text' },
            { label: '客户参考号', key: 'reference_no', isShow: true, type: 'text' },
            { label: '平台', key: 'platform', isShow: true, type: 'text' },
            {
              label: '订单状态', key: 'order_status', isShow: true, type: 'select', data: [
                { name: '待发货', value: 'W' },
                { name: '已发货', value: 'D' },
                { name: '异常订单', value: 'N' },
                { name: '问题件', value: 'P' },
                { name: '废弃', value: 'X' }]
            },
            { label: '物流产品代码', key: 'shipping_method', isShow: true, type: 'text' },
            { label: '配送仓库代码', key: 'warehouse_code', isShow: true, type: 'text' },
            { label: '订单重量', key: 'order_weight', isShow: true, type: 'text' },
            { label: '订单备注', key: 'order_desc', isShow: true, type: 'text' },
            { label: '付款时间', key: 'payment_time', isShow: true, type: 'date' },
            { label: '创建时间', key: 'date_create', isShow: true, type: 'date' },
            { label: '审核时间', key: 'date_release', isShow: false, type: 'date' },
            { label: '出库时间', key: 'date_shipping', isShow: false, type: 'date' },
            { label: '修改时间', key: 'date_modify', isShow: false, type: 'date' },
            { label: '提货时间', key: 'shipper_time', isShow: true, type: 'date' },
            { label: '国家代码', key: 'consignee_country_code', isShow: true, type: 'text' },
            { label: '省/州', key: 'consignee_state', isShow: true, type: 'text' },
            { label: '城市', key: 'consignee_city', isShow: true, type: 'text' },
            { label: '地址1', key: 'consignee_address1', isShow: true, type: 'text' },
            { label: '邮编', key: 'consignee_zipcode', isShow: true, type: 'text' },
            { label: '收件人名', key: 'consignee_name', isShow: true, type: 'text' },
            { label: '商品品质', key: 'product_quanlity', isShow: false, type: 'text' },
            { label: '效期状态', key: 'validity_type', isShow: false, type: 'text' },
            {
              label: '是否仓库装箱', key: 'is_warehouse_packing', isShow: true, type: 'select',
              data: [{ name: '是', value: 1 }, { name: '否', value: 0 }]
            },
            {
              label: '是否打板', key: 'is_optional_board', isShow: true, type: 'text', type: 'select',
              data: [{ name: '是', value: 1 }, { name: '否', value: 0 }]
            },
            { label: '打板时间', key: 'plank_time', isShow: false, type: 'date' },
            { label: '总费用', key: 'total_fee', isShow: true, type: 'text' },
            { label: '币种', key: 'currency_code', isShow: true, type: 'text' },
            { label: '站点来源', key: 'site_source', isShow: true, type: 'text' },
            {
              label: '配送方式', key: 'delivery_type', isShow: true, type: 'select',
              data: [{ name: '卡车', value: 1 }, { name: '快递', value: 0 }]
            },
            {
              label: '配送商', key: 'distributor_type', isShow: true, type: 'select',
              data: [{ name: '谷仓合作物流', value: 0 }, { name: '客户物流（谷仓交运）', value: 1 }, { name: '客户物流（自提）', value: 2 }]
            },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/GcOrder/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },
    // {
    //   name:'忽略同步库存sku',
    //   tableName: 'IgnoreSkus',
    //   data: {
    //     TopConfig: {
    //       data: [

    //       ],
    //       btn: [
    //         // 搜索按钮
    //         {
    //           isShow: true,
    //           label: '搜索',
    //           type: 'search',
    //           url: {
    //             method: 'get',
    //             api: '/IgnoreSkus/query',
    //             path: [
    //               { key: 'page', index: 1, required: true },
    //               { key: 'pagesize', index: 2, required: true }
    //             ],
    //             params: [
    //             ]
    //           }
    //         },

    //         {
    //           isShow: true,
    //           label: '导出',
    //           style: 'success',
    //           use_filter: true,
    //           download: true,
    //           url: {
    //             method: 'get',
    //             api: '/IgnoreSkus/export/excel'
    //           }
    //         }
    //       ]
    //     },


    //     // table 每个字段及其类型
    //     tableColumn: {
    //       column: [
    //         { label: '自增ID，唯一标识一条记录', key: 'id', isShow: false, type:'text'},
    //         { label: '易仓仓库sku', key: 'product_sku', isShow: true, type:'text'},
    //         { label: '匹配规则, True表示全等, False 表示包含', key: 'type', isShow: true, type:'text'},
    //         { label: '是否删除', key: 'isDelete', isShow: false, type:'text'},
    //       ],
    //       btn: [
    //       ],
    //     },
    //     url: {
    //       method: 'get',
    //       api: '/IgnoreSkus/query',
    //       pageSize: 20,
    //       params: [
    //       ]
    //     }
    //   },
    // },

    {
      name: '不修改库存sku',
      tableName: 'Ignoreskus',
      data: {
        TopConfig: {
          data: [
            {
              default: '',
              required: false,
              key: 'product_sku',
              placeholder: '易仓库存sku',
            },

          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/IgnoreSkus/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/IgnoreSkus/export/excel'
              }
            },
            {
              isShow: true,
              label: '添加',
              ifDialog: true,
              style: 'success',
              url: {
                method: 'post',
                api: '/IgnoreSkus/add'
              },
              dialogConfig: [
                {
                  default: '',
                  placeholder: '请输入易仓库存sku',
                  label: '易仓库存sku',
                  key: 'product_sku',
                  required: true,
                  isShow: true,
                },
                {
                  default: 1,
                  placeholder: '请输入易仓库存sku',
                  label: '易仓库存sku',
                  key: 'type',
                  required: true,
                  isShow: false,
                },
                {
                  default: 0,
                  placeholder: '是否删除',
                  label: '是否删除',
                  key: 'isDelete',
                  required: true,
                  isShow: false,
                }

              ],
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '自增ID', key: 'id', isShow: false, type: 'text' },
            { label: '易仓仓库sku', key: 'product_sku', isShow: true, type: 'text' },
            {
              label: '匹配规则, True表示全等, False 表示包含', key: 'type', isShow: true, type: 'select', data: [
                { name: '全等匹配', value: 1 },
                { name: '包含匹配', value: 0 },
              ]
            },
            {
              label: '是否启用', key: 'isDelete',
              isShow: true, type: 'select', data: [
                { name: '否', value: 1 },
                { name: '是', value: 0 },
              ]
            }
          ],
          btn: [
            {
              label: '删除',
              style: 'danger',
              url: {
                method: 'get',
                api: '/IgnoreSkus/delete',
                path: [{
                  index: 1,
                  key: 'id',
                  required: true
                }]
              }
            }
          ],
        },
        url: {
          method: 'get',
          api: '/IgnoreSkus/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },
    {
      name: 'OutStockDetails',
      tableName: 'OutStockDetails',
      data: {
        TopConfig: {
          data: [

            {
              default: '',
              required: false,
              type: 'text',
              key: 'product_sku',
              placeholder: '请输入谷仓sku/ 橙联sku',
            },
            {
              default: '',
              required: false,
              type: 'date',
              key: 'record_time_start',
              placeholder: '记录时间开始',
            },
            {
              default: '',
              required: false,
              type: 'date',
              key: 'record_time_end',
              placeholder: '记录时间结束',
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/OutStockDetails/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '添加',
              style: 'success',
              ifDialog: true,
              url: {
                method: 'get',
                api: '/OutStockDetails/add'
              },
              dialogConfig: [
                { required: true, label: '主键 ID', key: 'id', isShow: false, type: 'text' },
                { required: true, label: '谷仓sku/ 橙联sku', key: 'product_sku', isShow: true, type: 'text' },
                { required: true, label: '订单编号', key: 'order_code', isShow: true, type: 'text' },
                { required: true, label: '记录时间', key: 'record_time', isShow: true, type: 'date' },
                { required: true, label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
                { required: true, label: '销售人id', key: 'person_seller_id', isShow: false, type: 'text' },
                { required: true, label: '选品人id', key: 'person_develop_id', isShow: false, type: 'text' },
              ]
            },


            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/OutStockDetails/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '主键 ID', key: 'id', isShow: false, type: 'text' },
            { label: '谷仓sku/ 橙联sku', key: 'product_sku', isShow: true, type: 'text' },
            { label: '订单编号', key: 'order_code', isShow: true, type: 'text' },
            { label: '记录时间', key: 'record_time', isShow: true, type: 'date' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
            {
              label: '选品人', key: 'person_develop_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_develop_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_develop_id',
            },
            {
              label: '运营人', key: 'person_seller_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_seller_id',
            },
          ],
          btn: [

            {
              label: '修改',
              style: 'primary',
              ifDialog: true,
              dialogConfig: [
                { required: true, label: '主键 ID', key: 'id', isShow: false, type: 'text' },
                { required: true, label: '谷仓sku/ 橙联sku', key: 'product_sku', isShow: true, type: 'text' },
                { required: true, label: '订单编号', key: 'order_code', isShow: true, type: 'text' },
                { required: true, label: '记录时间', key: 'record_time', isShow: true, type: 'date' },
                { required: true, label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
                { required: true, label: '销售人id', key: 'person_seller_id', isShow: false, type: 'text' },
                { required: true, label: '选品人id', key: 'person_develop_id', isShow: false, type: 'text' },
              ],
              url: {
                method: 'post',
                api: '/OutStockDetails/update',
                path: []
              }
            },
            {
              label: '删除',
              style: 'danger',
              url: {
                method: 'get',
                api: '/OutStockDetails/delete',
                path: [{
                  index: 1,
                  key: 'id',
                  required: true
                }]
              }
            }
          ],
        },
        url: {
          method: 'get',
          api: '/OutStockDetails/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },


    {
      name: 'OutStock',
      tableName: 'OutStock',
      data: {
        TopConfig: {
          data: [

            {
              default: '',
              required: false,
              type: 'text',
              key: 'product_sku',
              placeholder: '请输入谷仓sku/ 橙联sku',
            },
            {
              type: 'input-group',
              width: 300,
              value: [
                {
                  default: 0, required: false, type: 'select', data:
                    [
                      {
                        value: 0, name: '全部人员', "inner_change": true,
                        replace_inner:
                        {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            data: [],
                            key: 'person_develop_id',
                            placeholder: '请选择人员',
                          },
                        }
                      },
                      {
                        value: 1, name: '选品人', "inner_change": true, replace_inner: {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            url: {
                              api: '/SysUser/person_develop_id/all',
                              method: 'get',
                              map: {
                                value: 'user_name',
                                key: 'user_id'
                              }
                            },
                            key: 'person_develop_id',
                            placeholder: '请选择开发人员',
                          },
                        }
                      },
                      {
                        value: 2, name: '运营人', "inner_change": true, replace_inner: {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            url: {
                              api: '/SysUser//person_seller_id/all',
                              method: 'get',
                              map: {
                                value: 'user_name',
                                key: 'user_id'
                              }
                            },
                            key: 'person_develop_id',
                            placeholder: '请选择开发人员',
                          },
                        }
                      },
                    ],
                  key: 'user_type',
                  placeholder: '请选择人员类型',
                },

                {
                  default: '', required: false, type: 'select',
                  placeholder: '请选择人员',
                  data: [],
                  key: 'person_develop_id',
                  placeholder: '请选择开发人员',
                },

              ]
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/OutStockDetails/query/OutStock',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },
            // {
            //   isShow: true,
            //   label: '导出',
            //   style: 'success',
            //   use_filter: true,
            //   download: true,
            //   url: {
            //     method: 'get',
            //     api: '/OutStockDetails/export/excel'
            //   }
            // }
          ]
        },

        TagConfig: {
          url: {
            method: 'get',
            api: '/OutStockDetails/query/statistics',
            pageSize: 20,
            params: [
            ]
          },
          title: '断货统计',
          content_map: [
            { label: '本月断货率', key: 'this_month_rate' },
            { label: '上月断货率', key: 'last_month_rate' },
            { label: 'sku总数', key: 'sku_count' },
            { label: '本月断次数', key: 'this_month' },
            { label: '上月断次数', key: 'last_month' },
            { label: '最近15天断货次数', key: 'last_15_days' },
            { label: '最近30天断货次数', key: 'last_30_days' },
            { label: '最近60天断货次数', key: 'last_60_days' }
          ]

        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '主键 ID', key: 'id', isShow: false, type: 'text' },
            {
              label: '谷仓sku/ 橙联sku', key: 'product_sku', isShow: true, type: 'text',
              after: {
                text: row => { return '详情' },
                style: 'color:#409eff;cursor:pointer;padding-left:3px',
                use_tablebtn_event:
                {
                  label: '详情',
                  style: 'warning',
                  ifDialog: true,
                  ifNewTable: true,
                  use_paginate: false,
                  width: '80%',
                  url: {
                    method: 'get',
                    api: '/OutStockDetails/query/OutStock',
                    pageSize: 20,
                    path: [
                      {
                        index: 1,
                        key: 'product_sku',
                        required: true
                      }
                    ]

                  },
                  dialogConfig: {
                    tableColumn: {
                      column: [
                        { label: '主键 ID', key: 'id', isShow: false, type: 'text' },
                        { label: '谷仓sku/ 橙联sku', key: 'product_sku', isShow: true, type: 'text' },
                        { label: '订单编号', key: 'order_code', isShow: true, type: 'text' },
                        { label: '记录时间', key: 'record_time', isShow: true, type: 'date' },
                        { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
                        {
                          label: '选品人', key: 'person_develop_id',
                          type: 'select',
                          isShow: true,
                          url: {
                            api: '/SysUser/person_develop_id/all',
                            method: 'get',
                            map: {
                              value: 'user_name',
                              name: 'user_id'
                            }
                          },
                          key: 'person_develop_id',
                        },
                        {
                          label: '运营人', key: 'person_seller_id',
                          type: 'select',
                          isShow: true,
                          url: {
                            api: '/SysUser/person_seller_id/all',
                            method: 'get',
                            map: {
                              value: 'user_name',
                              name: 'user_id'
                            }
                          },
                          key: 'person_seller_id',
                        },
                      ],
                      btn: [

                      ],
                    }
                  }
                },

              }
            },
            { label: '最近15天', key: 'last_15_days', isShow: true, type: 'text' },
            { label: '最近30天', key: 'last_30_days', isShow: true, type: 'text' },
            { label: '最近60天', key: 'last_60_days', isShow: true, type: 'text' },
            { label: '本月', key: 'this_month', isShow: true, type: 'text' },
            { label: '上个月', key: 'last_month', isShow: true, type: 'text' },
            {
              label: '选品人', key: 'person_develop_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_develop_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_develop_id',
            },
            {
              label: '运营人', key: 'person_seller_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_seller_id',
            },
          ],
          btn: [
            {
              label: '详情',
              style: 'warning',
              ifDialog: true,
              ifNewTable: true,
              use_paginate: false,
              width: '80%',
              url: {
                method: 'get',
                api: '/OutStockDetails/query/OutStock',
                pageSize: 20,
                path: [
                  {
                    index: 1,
                    key: 'product_sku',
                    required: true
                  }
                ]
              },
              dialogConfig: {
                tableColumn: {
                  column: [
                    { label: '主键 ID', key: 'id', isShow: false, type: 'text' },
                    { label: '谷仓sku/ 橙联sku', key: 'product_sku', isShow: true, type: 'text' },
                    { label: '订单编号', key: 'order_code', isShow: true, type: 'text' },
                    { label: '记录时间', key: 'record_time', isShow: true, type: 'date' },
                    { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
                    {
                      label: '选品人', key: 'person_develop_id',
                      type: 'select',
                      isShow: true,
                      url: {
                        api: '/SysUser/person_develop_id/all',
                        method: 'get',
                        map: {
                          value: 'user_name',
                          name: 'user_id'
                        }
                      },
                      key: 'person_develop_id',
                    },
                    {
                      label: '运营人', key: 'person_seller_id',
                      type: 'select',
                      isShow: true,
                      url: {
                        api: '/SysUser/person_seller_id/all',
                        method: 'get',
                        map: {
                          value: 'user_name',
                          name: 'user_id'
                        }
                      },
                      key: 'person_seller_id',
                    },
                  ],
                  btn: [

                  ],
                }
              }
            },
            {
              label: '排除',
              style: 'danger',
              url: {
                method: 'get',
                api: '/OutStockDetails/delete/OutStock',
                path: [{
                  index: 1,
                  key: 'product_sku',
                  required: true
                }]
              }
            }
          ],
        },
        url: {
          method: 'get',
          api: '/OutStockDetails/query/OutStock',
          pageSize: 20,
          params: [
          ]
        }
      },
    },



    {
      name: 'UserOutStock',
      tableName: 'UserOutStock',
      data: {
        TopConfig: {
          data: [
            {
              default: '',
              type: 'select',
              required: false,
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  key: 'user_id'
                }
              },
              key: 'person_seller_id',
              placeholder: '请选择运营人'
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/OutStockDetails/query/statistics/user',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },
            // {
            //   isShow: true,
            //   label: '导出',
            //   style: 'success',
            //   use_filter: true,
            //   download: true,
            //   url: {
            //     method: 'get',
            //     api: '/OutStockDetails/export/excel'
            //   }
            // }
          ]
        },

        // table 每个字段及其类型
        tableColumn: {
          column: [
            {
              label: '运营人', key: 'person_seller_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_seller_id',
            },
            { label: '本月断货率', key: 'this_month_rate', type: 'text', isShow: true, },
            { label: '上月断货率', key: 'last_month_rate', type: 'text', isShow: true, },
            { label: 'sku总数', key: 'sku_count', type: 'text', isShow: true, },
            { label: '本月断次数', key: 'this_month', type: 'text', isShow: true, },
            { label: '上月断次数', key: 'last_month', type: 'text', isShow: true, },
            { label: '最近15天断货次数', key: 'last_15_days', type: 'text', isShow: true, },
            { label: '最近30天断货次数', key: 'last_30_days', type: 'text', isShow: true, },
            { label: '最近60天断货次数', key: 'last_60_days', type: 'text', isShow: true, },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/OutStockDetails/query/statistics/user',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

    {
      name: 'UserOrder',
      tableName: 'UserOrder',
      data: {
        chartOptions: {
          title: {
            text: '任务进度对比',
            left: 'center'
          },
          tooltip: {
            trigger: 'axis',
            axisPointer: { type: 'shadow' },
            formatter: function (params) {
              let str = params[0].axisValue + '      '+'目标: '+ params[2].data.taret_order_subtotal + '$<br/>';
              params.forEach(p => {
                if(p.data.isShow){

                  console.log("p==>", p)
                  const value = p.data.value ?? p.value;    // 实际金额
                  const percent = p.data.persent ?? '';     // 百分比
                  str += `${p.seriesName}：${percent ? percent + ' (' + value + '$)' : value + '$'}<br/>`;
                }
              });
              return str;
            }
          },

          legend: {
            top: 30
          },
          grid: {
            top: 80,
            left: 60,
            right: 40,
            bottom: 60
          },
          xAxis: {
            type: 'category',
            data: ['任务A', '任务B', '任务C'],
            axisLabel: {
          }
          },
          yAxis: {
            type: 'value',
            max: 150, // 显示超额部分
            axisLabel: { formatter: '{value}%' }
          },
          series: [
            {
              name: '已完成',
              type: 'bar',
              stack: 'total',
              data: [60, 80, 100],
              itemStyle: { color: 'orange' }
            },
            {
              name: '未完成（不达标）',
              type: 'bar',
              stack: 'total',
              data: [40, 0, 0],
              itemStyle: {
                color: 'rgba(255,0,0)', // 半透明红
              }
            },
            {
              name: '未完成（按计划）',
              type: 'bar',
              stack: 'total',
              data: [0, 20, 0],
              itemStyle: {
                color: 'blue',
              }
            },
            {
              name: '超额完成',
              type: 'bar',
              stack: 'total',
              data: [0, 0, 20],
              itemStyle: { color: 'green' }
            }
          ],
          url: "use_table_data" // 使用表格数据
        },
        TopConfig: {
          data: [
            {
              default: '',
              type: 'select',
              required: false,
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  key: 'user_id'
                }
              },
              key: 'person_seller_id',
              placeholder: '请选择运营人'
            },

            {
              default: '',
              required: false,
              type: 'date',
              key: 'query_time_start',
              placeholder: '查询开始日期',
            },
            {
              default: '',
              required: false,
              type: 'date',
              key: 'query_time_end',
              placeholder: '查询结束日期',
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/Order/query/user',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },
            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/Order/query/user/export/excel'
              }
            }
          ]
        },
        // table 每个字段及其类型
        tableColumn: {
          column: [
            {
              label: '用户', key: 'person_seller_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_seller_id',
            },
            { label: '开始时间', key: 'query_time_start', type: 'date', isShow: true, },
            { label: '结束时间', key: 'query_time_end', type: 'date', isShow: true, },
            {
              label: '当前单量', key: 'order_count', isShow: true,
              type: 'row_many', column: 1, map: [
                {
                  label: "当前单量",
                  key: 'actual'
                },
                {
                  label: "目标单量",
                  key: 'target'
                },
                {
                  label: "百分比",
                  key: 'persent'
                },
              ]

            },
            {
              label: '当前销售额', key: 'order_subtotal', isShow: true,

              type: 'row_many', column: 1, map: [
                {
                  label: "当前销售额",
                  key: 'actual'
                },
                {
                  label: "目标销售额",
                  key: 'target'
                },
                {
                  label: "百分比",
                  key: 'persent'
                },
              ]
            },


            {
              label: '销售速度', key: 'rate', isShow: true,

              type: 'row_many', column: 1, map: [
                {
                  label: "当前速度",
                  key: 'actual'
                },
                {
                  label: "目标速度",
                  key: 'target'
                },
                {
                  label: "分析结果",
                  key: 'msg'
                },
              ]
            },


            { label: '当前sku种类', key: 'sku_class', type: 'text', isShow: true, },
            { label: 'sku数量', key: 'sku_count', type: 'text', isShow: true, },
          ],
          btn: [
            {
              label: '目标',
              style: 'primary',
              ifDialog: true,
              dialogConfig: [

                {
                  default: 0,
                  placeholder: '目标单量',
                  label: '目标单量',
                  key: 'taret_order_count',
                  required: true,
                  isShow: true,
                  type: 'number',
                },
                {
                  default: [],
                  placeholder: '目标销售额',
                  label: '目标销售额',
                  key: 'taret_order_subtotal',
                  required: true,
                  isShow: true,
                  type: 'number',
                },
                {
                  default: [],
                  placeholder: '选择月份',
                  label: '选择月份',
                  key: 'date',
                  required: true,
                  isShow: true,
                  type: 'date',
                  datetype: 'month',
                },
                {
                  default: '',
                  key: 'person_seller_id',
                  required: false,
                  isShow: false,
                }
              ],
              url: {
                method: 'post',
                api: '/SysUser/target/order',
                path: []
              }
            },
          ],
        },
        url: {
          method: 'get',
          api: '/Order//query/user',
          pageSize: 20,
          params: [
          ]
        }
      },
    },



    {
      name: 'SelfOrderCount',
      tableName: 'SelfUserOrder',
      data: {
        TopConfig: {
          data: [
            {
              default: '',
              type: 'select',
              required: false,
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  key: 'user_id'
                }
              },
              key: 'person_seller_id',
              placeholder: '请选择运营人'
            },

            {
              default: '',
              required: false,
              type: 'date',
              key: 'query_time_start',
              placeholder: '查询开始日期',
            },
            {
              default: '',
              required: false,
              type: 'date',
              key: 'query_time_end',
              placeholder: '查询结束日期',
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/Order/query/user/self',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },
            // {
            //   isShow: true,
            //   label: '导出',
            //   style: 'success',
            //   use_filter: true,
            //   download: true,
            //   url: {
            //     method: 'get',
            //     api: '/OutStockDetails/export/excel'
            //   }
            // }
          ]
        },

        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '开始时间', key: 'query_time_start', type: 'date', isShow: true, },
            { label: '结束时间', key: 'query_time_end', type: 'date', isShow: true, },
            {
              label: '当前单量', key: 'order_count', type: 'text', isShow: true,
              type: 'row_many', column: 1, map: [
                {
                  label: "当前单量",
                  key: 'actual'
                },
                {
                  label: "目标单量",
                  key: 'target'
                },
                {
                  label: "完成进度",
                  key: 'rate'
                },
                { label: '分析结果', key: 'msg' }
              ]
            },
            {
              label: '当前销售额', key: 'order_subtotal', isShow: true,
              type: 'row_many', column: 1, map: [
                {
                  label: "当前销售额",
                  key: 'actual'
                },
                {
                  label: "目标销售额",
                  key: 'target'
                },
                {
                  label: "完成进度",
                  key: 'rate'
                },
                { label: '分析结果', key: 'msg' }
              ]
            },


            {
              label: '月当前单量', key: 'month_order_count', type: 'text', isShow: true,
              type: 'row_many', column: 1, map: [
                {
                  label: "当前单量",
                  key: 'actual'
                },
                {
                  label: "目标单量",
                  key: 'target'
                },
                {
                  label: "完成进度",
                  key: 'rate'
                },
                { label: '分析结果', key: 'msg' }
              ]
            },
            {
              label: '月当前销售额', key: 'month_order_subtotal', isShow: true,
              type: 'row_many', column: 1, map: [
                {
                  label: "当前销售额",
                  key: 'actual'
                },
                {
                  label: "目标销售额",
                  key: 'target'
                },
                {
                  label: "完成进度",
                  key: 'rate'
                },
                { label: '分析结果', key: 'msg' }
              ]
            },


            { label: '当前sku种类', key: 'sku_class', type: 'text', isShow: true, },
            { label: 'sku数量', key: 'sku_count', type: 'text', isShow: true, },
            { label: '', key: 'taret_order_count', isShow: false, type: 'number' },
            { label: '', key: 'taret_order_subtotal', isShow: false, type: 'number' }

            //


            //


          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/Order/query/user/self',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

    {
      name: '谷仓产品',
      tableName: 'MapInventoryLocation',
      data: {
        TopConfig: {
          data: [

          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/MapInventoryLocation/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/MapInventoryLocation/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '主键ID', key: 'id', isShow: false, type: 'text' },
            { label: '易仓代码', key: 'yc_info', isShow: true, type: 'text' },
            { label: '谷仓代码', key: 'gc_info', isShow: true, type: 'text' },
            { label: '橙联代码', key: 'cl_info', isShow: true, type: 'text' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
            { label: '备注', key: 'describe', isShow: true, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/MapInventoryLocation/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

    {
      name: '易仓订单',
      tableName: 'Order',
      data: {
        TopConfig: {
          data: [

            {
              default: '',
              required: false,
              type: 'text',
              key: 'order_code',
              placeholder: '请输入订单唯一编号',
            },
            {
              default: '',
              required: false,
              type: 'select',
              data: [
                { name: '谷仓', value: "GC" },
                { name: '橙联', value: "CL" },
              ],
              key: 'type_code',
              placeholder: '请选择订单来源',
            },
            {
              type: 'input-group',
              width: 300,
              value: [
                {
                  default: 0, required: false, type: 'select', data:
                    [
                      {
                        value: 0, name: '全部人员', "inner_change": true,
                        replace_inner:
                        {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            data: [],
                            key: 'person_develop_id',
                            placeholder: '请选择人员',
                          },
                        }
                      },
                      {
                        value: 1, name: '选品人', "inner_change": true, replace_inner: {
                          key: 'person_develop_id_select',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            url: {
                              api: '/SysUser/person_develop_id/all',
                              method: 'get',
                              map: {
                                value: 'user_name',
                                key: 'user_id'
                              }
                            },
                            key: 'person_develop_id_select',
                            placeholder: '请选择开发人员',
                          },
                        }
                      },
                      {
                        value: 2, name: '运营人', "inner_change": true, replace_inner: {
                          key: 'person_develop_id_select',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            url: {
                              api: '/SysUser//person_seller_id/all',
                              method: 'get',
                              map: {
                                value: 'user_name',
                                key: 'user_id'
                              }
                            },
                            key: 'person_develop_id_select',
                            placeholder: '请选择开发人员',
                          },
                        }
                      },
                    ],
                  key: 'user_type',
                  placeholder: '请选择人员类型',
                },

                {
                  default: '', required: false, type: 'select',
                  placeholder: '请选择人员',
                  data: [],
                  key: 'person_develop_id_select',
                  placeholder: '请选择开发人员',
                },

              ]
            },



            {
              default: '',
              required: false,
              type: 'select',
              key: 'status',
              placeholder: '请输入订单状态',
              data: [
                { name: '已废弃', value: 0 },
                { name: '付款未完成', value: 1 },
                { name: '待发货审核', value: 2 },
                { name: '待发货', value: 3 },
                { name: '已发货', value: 4 },
                { name: '冻结中', value: 5 },
                { name: '缺货', value: 6 },
                { name: '问题件', value: 7 },
                { name: '未付款', value: 8 }
              ]
            },
            {
              default: '',
              required: false,
              type: 'text',
              key: 'platform_sku',
              placeholder: '请输入平台sku',
            },
            {
              default: '',
              required: false,
              type: 'date',
              key: 'platform_paid_date_start',
              placeholder: '付款时间开始',
            },
            {
              default: '',
              required: false,
              type: 'date',
              key: 'platform_paid_date_end',
              placeholder: '付款时间结束',
            },
            {
              default: '',
              required: false,
              type: 'text',
              key: 'platform_user_name',
              placeholder: '请输入账号名称',
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/Order/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/Order/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '订单唯一编号', key: 'order_code', isShow: true, type: 'text' },
            {
              label: '订单状态', key: 'status', isShow: true, type: 'select', data: [

                { name: '已废弃', value: 0 },
                { name: '付款未完成', value: 1 },
                { name: '待发货审核', value: 2 },
                { name: '待发货', value: 3 },
                { name: '已发货', value: 4 },
                { name: '冻结中', value: 5 },
                { name: '缺货', value: 6 },
                { name: '问题件', value: 7 },
                { name: '未付款', value: 8 }

              ]
            },
            {
              label: '订单来源', key: 'type_code', isShow: true, type: 'select', data: [
                { name: '橙联订单', value: "CL" },
                { name: '谷仓订单', value: "GC" }
              ]
            },
            { label: '平台代码', key: 'platform', isShow: true, type: 'text' },
            { label: '平台sku', key: 'platform_sku', isShow: true, type: 'text' },
            { label: '数量', key: 'qty', isShow: true, type: 'text' },
            { label: '付款时间', key: 'platform_paid_date', isShow: true, type: 'date' },
            { label: '在线listing id', key: 'listing_id', isShow: true, type: 'text' },
            { label: '销售额', key: 'subtotal', isShow: true, type: 'text' },
            { label: '买家邮箱', key: 'buyer_mail', isShow: true, type: 'text' },
            { label: '买家名称', key: 'buyer_name', isShow: true, type: 'text' },
            { label: '发货仓库ID', key: 'warehouse_id', isShow: false, type: 'text' },
            { label: '发货仓代码', key: 'warehouse_code', isShow: true, type: 'text' },
            { label: '账号名称', key: 'platform_user_name', isShow: true, type: 'text' },
            { label: '产品链接', key: 'product_url', isShow: false, type: 'text' },
            { label: '图片地址', key: 'pic', isShow: false, type: 'image' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/Order/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

    {
      name: '谷仓产品',
      tableName: 'PlatformSkuInsetLog',
      data: {
        TopConfig: {
          data: [

          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/PlatformSkuInsetLog/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/PlatformSkuInsetLog/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '平台SKU，唯一标识一个平台的商品', key: 'platform_sku', isShow: true, type: 'text' },
            { label: '来自订单', key: 'order_code', isShow: true, type: 'text' },
            { label: '创建时间', key: 'create_time', isShow: true, type: 'date' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/PlatformSkuInsetLog/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

    {
      name: '谷仓产品',
      tableName: 'PlatformSkuMain',
      data: {
        TopConfig: {
          data: [

          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/PlatformSkuMain/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/PlatformSkuMain/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '平台SKU，唯一标识一个平台的商品', key: 'platform_sku', isShow: true, type: 'text' },
            { label: '平台SKU的名称', key: 'platform_sku_name', isShow: true, type: 'text' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/PlatformSkuMain/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

    {
      name: 'sku映射关系',
      tableName: 'PlatformSkuRelation',
      data: {
        TopConfig: {
          data: [
            {
              default: '',
              required: false,
              type: 'text',
              key: 'platform_sku',
              placeholder: '请输入平台SKU',
            },
            {
              default: '',
              required: false,
              type: 'text',
              key: 'product_sku',
              placeholder: '请输入商品SKU',
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/PlatformSkuRelation/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/PlatformSkuRelation/export/excel'
              }
            },



            {

              isShow: true,
              label: '添加',
              ifDialog: true,
              style: 'success',
              url: {
                method: 'post',
                api: '/PlatformSkuRelation/add'
              },

              dialogConfig: [
                {
                  default: '',
                  placeholder: '请输入平台sku',
                  label: '平台sku',
                  key: 'platform_sku',
                  required: true,
                  isShow: true,
                },
                {
                  default: '',
                  placeholder: '请输入易仓库存sku',
                  label: '易仓库存sku',
                  key: 'product_sku',
                  required: true,
                  isShow: true,
                },

                {
                  default: 1,
                  placeholder: '数量',
                  label: '数量',
                  key: 'product_sku_qty',
                  required: true,
                  isShow: true,
                },

                { default: 0, required: false, label: '采购价', key: 'product_sku_pu_price', isShow: true, type: 'number' },

                { default: 0.00, required: false, label: '商品的费用比率', key: 'product_sku_expense_ratio', isShow: true, type: 'number' },

                { default: 0, required: false, label: '是否删除', key: 'isDelete', isShow: false, type: 'number' },
              ]

            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '自增ID，唯一标识一条记录', key: 'id', isShow: false, type: 'text' },
            { label: '平台SKU', key: 'platform_sku', isShow: true, type: 'text' },
            { label: '商品SKU', key: 'product_sku', isShow: true, type: 'text' },
            { label: '商品数量', key: 'product_sku_qty', isShow: true, type: 'text' },
            { label: '更新时间', key: 'update_time', isShow: true, type: 'date' },
            { label: '商品的费用比率', key: 'product_sku_expense_ratio', isShow: true, type: 'text' },
            { label: '采购价', key: 'product_sku_pu_price', isShow: true, type: 'text' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
            {
              label: '删除',
              style: 'danger',
              url: {
                method: 'get',
                api: '/PlatformSkuRelation/delete',
                path: [{
                  index: 1,
                  key: 'id',
                  required: true
                }]
              }
            }
          ],
        },
        url: {
          method: 'get',
          api: '/PlatformSkuRelation/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },
    {
      name: '区域库存',
      tableName: 'ProductInventory',
      data: {
        TopConfig: {
          data: [
            {
              default: '',
              required: false,
              type: 'text',
              key: 'product_sku',
              placeholder: '请输入谷仓商品SKU',
            },
            {
              default: '请选择采购人员',
              required: false,
              type: 'select',
              // data:[
              //   {value:'cmx3', name:'3'},
              //   {value:'cmx2', name:'2'},
              //   {value:'cmx1', name:'1'},
              // ],
              url: {
                api: '/SysUser/person_oprater_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  key: 'user_id'
                }
              },
              key: 'person_oprater_id',
              placeholder: '请选择采购人员',
            },
            {
              default: '请选择销售人员',
              required: false,
              type: 'select',
              // data:[
              //   {value:'cmx3', name:'3'},
              //   {value:'cmx2', name:'2'},
              //   {value:'cmx1', name:'1'},
              // ],
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  key: 'user_id'
                }
              },
              key: 'person_seller_id',
              placeholder: '请选择销售人员',
            },
            {
              default: '请选择开发人员',
              required: false,
              type: 'select',
              // data:[
              //   {value:'cmx3', name:'3'},
              //   {value:'cmx2', name:'2'},
              //   {value:'cmx1', name:'1'},
              // ],
              url: {
                api: '/SysUser/person_develop_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  key: 'user_id'
                }
              },
              key: 'person_develop_id',
              placeholder: '请选择开发人员',
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/ProductInventory/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/ProductInventory/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: 'None', key: 'id', isShow: false, type: 'text' },
            { label: '商品 sku', key: 'product_sku', isShow: true, type: 'text' },
            { label: '尾程在途数量', key: 'onway', isShow: true, type: 'text' },
            { label: '发货在途中数量', key: 'transfer_onway', isShow: true, type: 'text' },
            { label: '总在途数量', key: 'total_onway', isShow: true, type: 'text' },
            { label: '待上架数量', key: 'pending', isShow: true, type: 'text' },
            { label: '可售数量', key: 'sellable', isShow: true, type: 'text' },
            { label: '不合格数量', key: 'unsellable', isShow: true, type: 'text' },
            { label: '待出库数量', key: 'reserved', isShow: true, type: 'text' },
            { label: '备货数量', key: 'stocking', isShow: true, type: 'text' },
            { label: '缺货数量', key: 'pi_no_stock', isShow: true, type: 'text' },
            { label: '冻结数量', key: 'pi_freeze', isShow: true, type: 'text' },
            { label: '预警库存数量', key: 'pi_warning_qty', isShow: true, type: 'text' },
            { label: '仓库名称', key: 'warehouse_desc', isShow: true, type: 'text' },
            { label: '仓库代码', key: 'warehouse_code', isShow: true, type: 'text' },
            { label: ' 历史出库数量', key: 'shipped', isShow: true, type: 'text' },
            { label: '商品冻结状态', key: 'product_freeze_status', isShow: true, type: 'text' },
            { label: '仓库类型, 如橙联, 谷仓', key: 'warehouse_type', isShow: true, type: 'text' },
            { label: 'redis中该商品待出库的数量总计', key: 'redis_reserved', isShow: false, type: 'text' },
            { label: '该仓库所有海外预售总和', key: 'orgin_all', isShow: false, type: 'text' },
            { label: '该仓库所有海外预售总和+可售数量 - redis中的数量', key: 'all_sallable', isShow: false, type: 'text' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/ProductInventory/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

    {
      name: '谷仓产品',
      tableName: 'ProductSkuInfo',
      data: {
        TopConfig: {
          data: [

          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/ProductSkuInfo/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/ProductSkuInfo/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '谷仓商品', key: 'product_sku', isShow: true, type: 'text' },
            { label: '商品名称', key: 'product_name', isShow: true, type: 'text' },
            { label: '可售数量', key: 'available_qty', isShow: true, type: 'text' },
            { label: '商品描述', key: 'product_description', isShow: true, type: 'text' },
            { label: '创建时间', key: 'created_at', isShow: true, type: 'date' },
            { label: '更新时间', key: 'updated_at', isShow: true, type: 'date' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/ProductSkuInfo/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

    {
      name: '装箱订单',
      tableName: 'ReceivingOrder',
      data: {
        TopConfig: {
          data: [
            { placeholder: '入库单号', required: false, default: '', label: '入库单号', key: 'receiving_code', type: 'text' },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/ReceivingOrder/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/ReceivingOrder/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '主键 ID', key: 'id', isShow: false, type: 'text' },
            { label: '入库单号', key: 'receiving_code', isShow: true, type: 'text' },
            { label: '客户参考号', key: 'reference_no', isShow: true, type: 'text' },
            { label: '服务方式(物流产品代码)', key: 'sm_code', isShow: true, type: 'text' },
            { label: '入库单状态', key: 'receiving_status', isShow: true, type: 'text' },
            { label: '入库单类型', key: 'transit_type', isShow: true, type: 'text' },
            { label: '货运方式', key: 'receiving_shipping_type', isShow: true, type: 'text' },
            { label: '创建时间', key: 'create_at', isShow: true, type: 'date' },
            { label: '修改时间', key: 'update_at', isShow: true, type: 'date' },
            { label: '海外仓仓库编码', key: 'warehouse_code', isShow: true, type: 'text' },
            { label: '国内中转仓库编码', key: 'transit_warehouse_code', isShow: true, type: 'text' },
            { label: '海外仓收货总箱数', key: 'overseas_box_total', isShow: true, type: 'text' },
            { label: '海外仓收货总件数', key: 'overseas_sku_total', isShow: true, type: 'text' },
            { label: '预报箱数', key: 'box_total_count', isShow: true, type: 'text' },
            { label: '预报SKU件数', key: 'sku_total_count', isShow: true, type: 'text' },
            { label: '跟踪号', key: 'tracking_number', isShow: true, type: 'text' },
            { label: '物理仓编码', key: 'wp_code', isShow: true, type: 'text' },
            { label: '备注', key: 'remark', isShow: true, type: 'text' },
            { label: '报关资料上传状态', key: 'customs_docs_status', isShow: true, type: 'text' },
            { label: '是否仓库装箱商品', key: 'is_rollover', isShow: true, type: 'text' },
            { label: '最后中转运输轨迹状态名称', key: 'track_status', isShow: true, type: 'text' },
            { label: 'None', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/ReceivingOrder/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

    {
      name: '海外仓在途',
      tableName: 'ReceivingOrderDetails',
      data: {
        TopConfig: {
          data: [

            {
              default: '',
              required: false,
              type: 'text',
              key: 'product_sku',
              placeholder: '请输入谷仓商品sku',
            },
            { required: false, default: '', placeholder: '入库单号', label: '入库单号', key: 'receiving_code', type: 'text' },
            {
              type: 'input-group',
              width: 300,
              value: [
                {
                  default: 0, required: false, type: 'select', data:
                    [
                      {
                        value: 0, name: '全部人员', "inner_change": true,
                        replace_inner:
                        {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            data: [],
                            key: 'person_develop_id',
                            placeholder: '请选择人员',
                          },
                        }
                      },
                      {
                        value: 1, name: '选品人', "inner_change": true, replace_inner: {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            url: {
                              api: '/SysUser/person_develop_id/all',
                              method: 'get',
                              map: {
                                value: 'user_name',
                                key: 'user_id'
                              }
                            },
                            key: 'person_develop_id',
                            placeholder: '请选择开发人员',
                          },
                        }
                      },
                      {
                        value: 2, name: '运营人', "inner_change": true, replace_inner: {
                          key: 'person_develop_id',
                          data: {
                            default: '', required: false, type: 'select',
                            placeholder: '请选择人员',
                            url: {
                              api: '/SysUser//person_seller_id/all',
                              method: 'get',
                              map: {
                                value: 'user_name',
                                key: 'user_id'
                              }
                            },
                            key: 'person_develop_id',
                            placeholder: '请选择开发人员',
                          },
                        }
                      },
                    ],
                  key: 'user_type',
                  placeholder: '请选择人员类型',
                },

                {
                  default: '', required: false, type: 'select',
                  placeholder: '请选择人员',
                  data: [],
                  key: 'person_develop_id',
                  placeholder: '请选择开发人员',
                },

              ]
            },
            {
              type: 'input-group',
              width: 480,
              value: [
                {
                  type: 'select', key: 'select', default: 0, placeholder: '请选择', data: [
                    { name: '请选择时间类型', value: 0 },
                    { name: '预计到货时间', value: 1 },
                    { name: '上架时间', value: 2 }
                  ]
                },
                { type: 'date', key: 'value1', default: '', placeholder: '开始时间', use_between: true },
                { type: 'date', key: 'value2', default: '', placeholder: '结束时间' },
              ]
            },

            // {
            //   default: '',
            //   required: false,
            //   type: 'date',
            //   key: 'eta_time_start',
            //   placeholder: '预计到货时间开始',
            // },
            // {
            //   default: '',
            //   required: false,
            //   type: 'date',
            //   key: 'eta_time_end',
            //   placeholder: '预计到货时间结束',
            // },

          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/ReceivingOrderDetails/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/ReceivingOrderDetails/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '主键 ID', key: 'id', isShow: false, type: 'text' },
            { label: '入库单号', key: 'receiving_code', isShow: true, type: 'text' },
            { label: '谷仓商品sku', key: 'product_sku', isShow: true, type: 'text' },
            { label: '预计到货时间', key: 'eta_time', isShow: true, type: 'date' },
            { label: '预报数量', key: 'quantity', isShow: true, type: 'text' },
            { label: '上架时间', key: 'putaway_time', isShow: true, type: 'date' },
            { label: '上架数量', key: 'putaway_qty', isShow: true, type: 'text' },
            { label: '入库单箱号', key: 'box_no', isShow: true, type: 'text' },
            { label: '宽度', key: 'product_width', isShow: false, type: 'text' },
            { label: '长度', key: 'product_length', isShow: true, type: 'text' },
            { label: '高度', key: 'product_height', isShow: true, type: 'text' },
            { label: '重量', key: 'product_weight', isShow: true, type: 'text' },
            { label: '收货数量', key: 'received_qty', isShow: true, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/ReceivingOrderDetails/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

    {
      name: '退回订单',
      tableName: 'ReturnOrder',
      data: {
        TopConfig: {
          data: [

            {
              default: '',
              required: false,
              type: 'text',
              key: 'returnID',
              placeholder: '请输入纠纷编号',
            },
            {
              default: '',
              required: false,
              type: 'text',
              key: 'sellerLoginName',
              placeholder: '请输入店铺名称',
            },
            {
              default: '',
              required: false,
              type: 'text',
              key: 'pfOrderID',
              placeholder: '请输入订单编号',
            },
            {
              default: '',
              required: false,
              type: 'text',
              key: 'pfSku',
              placeholder: '请输入平台sku',
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/ReturnOrder/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/ReturnOrder/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '纠纷编号', key: 'returnID', isShow: true, type: 'text' },
            { label: '店铺名称', key: 'sellerLoginName', isShow: true, type: 'text' },
            { label: '订单编号', key: 'pfOrderID', isShow: true, type: 'text' },
            { label: '图片', key: 'pfProductUrl', isShow: true, type: 'image' },
            { label: '平台sku', key: 'pfSku', isShow: true, type: 'text' },
            { label: '退款原因', key: 'openReason', isShow: true, type: 'text' },
            { label: '状态', key: 'handType', isShow: true, type: 'text' },
            { label: '更新时间', key: 'createTime', isShow: true, type: 'date' },
            { label: '退回数量', key: 'returnQuantity', isShow: true, type: 'text' },
            { label: '跟踪单号', key: 'returnTrackingNumbers', isShow: true, type: 'text' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/ReturnOrder/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

    {
      name: '人员关系',
      tableName: 'SysUser',
      data: {
        TopConfig: {
          data: [

            {
              default: '',
              required: false,
              type: 'text',
              key: 'user_name',
              placeholder: '请输入用户姓名',
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/SysUser/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/SysUser/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '用户ID', key: 'user_id', isShow: false, type: 'text' },
            { label: '用户编码', key: 'user_code', isShow: true, type: 'text' },
            { label: '用户姓名', key: 'user_name', isShow: true, type: 'text' },
            { label: '用户英文名', key: 'user_name_en', isShow: true, type: 'text' },
            { label: '用户电话', key: 'user_phone', isShow: true, type: 'text' },
            { label: '用户手机号', key: 'user_mobile_phone', isShow: true, type: 'text' },
            { label: '部门id', key: 'user_organization_id', isShow: false, type: 'text' },
            { label: '部门名称', key: 'uo_name', isShow: true, type: 'text' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/SysUser/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

    // 销售
    {
      name:'ReStock',
      tableName: 'ReStock_1',
      data: {
        TopConfig: {
          data: [

            {
              default: '',
              required: false,
              type: 'text',
              key: 'product_sku',
              placeholder: '请输入易仓产品',
            },
            {
              default: '请选择销售人员',
              required: false,
              type: 'select',
              // data:[
              //   {value:'cmx3', name:'3'},
              //   {value:'cmx2', name:'2'},
              //   {value:'cmx1', name:'1'},
              // ],
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  key: 'user_id'
                }
              },
              key: 'person_seller_id',
              placeholder: '请选择销售人员',
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/ReStock/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            // {
            //   isShow: true,
            //   label: '添加',
            //   style: 'success',
            //   ifDialog: true,
            //   url: {
            //     method: 'get',
            //     api: '/ReStock/add'
            //   },
            //   dialogConfig:[
            // {required: true, label: '主键 ID', key: 'id', isShow: false, type:'text'},
            // {required: true, label: '易仓产品', key: 'product_sku', isShow: true, type:'text'},
            // {required: true, label: '易仓产品名称', key: 'product_forecast_infoproduct_sku_name', isShow: true, type:'text'},
            // {required: true, label: '销售人id', key: 'person_seller_id', isShow: false, type:'text'},
            // {required: true, label: '选品人id', key: 'person_develop_id', isShow: false, type:'text'},
            // {required: true, label: '', key: 'status', isShow: true, type:'text'},
            // {required: true, label: '期望价格', key: 'expect_price', isShow: true, type:'text'},
            // {required: true, label: '期望供应商', key: 'expect_company', isShow: true, type:'text'},
            // {required: true, label: '销售推送补货数量', key: 'push_qty', isShow: true, type:'text'},
            // {required: true, label: '采购下载时的补货数量', key: 'last_qty', isShow: true, type:'text'},
            // {required: true, label: '系统创建时间', key: 'create_time', isShow: true, type:'date'},
            // {required: true, label: '销售审核时间', key: 'seller_time', isShow: true, type:'date'},
            // {required: true, label: '采购审核时间', key: 'oprater_time', isShow: true, type:'date'},
            // {required: true, label: '拒绝理由', key: 'msg', isShow: true, type:'text'},
            // {required: true, label: '是否删除', key: 'isDelete', isShow: false, type:'text'},
            //   ]
            // },
            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/ReStock/export/excel'
              }
            },
            {
              isShow: ()=>(localStorage.getItem("user_type") == 'seller' || ['cmx'].includes(localStorage.getItem("userName"))) ? true : false,
              label: '批量同意',
              style: 'warning',
              use_filter: true,
              refrush_table: true,
              use_select_item:{
                map:{
                  key:'ids',
                  value:['id', 'need_count', 'push_qty', 'uswe', 'ussc', 'usea']
                }
              },
              url: {
                method: 'post',
                api: '/ReStock/update/2'
              }
            },
            {
              isShow: ()=>(localStorage.getItem("user_type") == 'seller' || ['cmx'].includes(localStorage.getItem("userName"))) ? true : false,
              label: '批量拒绝',
              style: 'danger',
              use_filter: true,
              ifDialog: true,
              refrush_table: true,
              use_select_item:{
                map:{
                  key:'ids',
                  value:['id', "msg"]
                }
              },
              dialogConfig:[{required: true, label: '拒绝理由', key: 'msg', isShow: true, type:'textarea', max:100, autosize:{ minRows: 3, maxRows: 6 }  }],
              url: {
                method: 'post',
                api: '/ReStock/update/3'
              }
            },
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          "select":true,
          column: [
            { label: '主键 ID', key: 'id', isShow: false, type:'text'},
            { label: '易仓产品', key: 'product_sku', isShow: true, type:'text'},
            { label: '易仓产品名称', key: 'product_forecast_info.product_title_cn', isShow: true, type:'text'},
             {
              label: '选品人', key: 'person_develop_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_develop_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_develop_id',
            },
            {
              label: '运营人', key: 'person_seller_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_seller_id',
            },
            { label: '状态', key: 'status', isShow: true, type:'select',
               data: [
                { name: '采购已下单', value: '0' },
                { name: '待销售审核', value: '1' },
                { name: '待采购审核', value: '2' },
                { name: '销售拒绝', value: '3' },
                { name: '采购拒绝', value: '4' }]
             },


             {
              label: '售出分析', key: 'product_forecast_info.sall_rate_info', minWidth: 350, isShow: true, type: 'row_many', column: 2, map: [
                [{
                  label: '7天售出',
                  key: 'day_7'
                }, {
                  label: '14天售出',
                  key: 'day_14'
                }, {
                  label: '30天售出',
                  key: 'day_30'
                },
                { key: 'msg', label: '备注', calc_show: (item) => (item.use_stock == true) },

                {
                  label: '60天售出',
                  key: 'day_60',
                  calc_show: (item) => (item.use_stock != true)
                }, {
                  label: '90天售出',
                  key: 'day_90',
                  calc_show: (item) => (item.use_stock != true)

                }],
                [{
                  label: '每天均售',
                  key: 'day_7_aver'
                },

                {
                  label: '每天均售',
                  key: 'day_14_aver'
                },
                {
                  label: '每天均售',
                  key: 'day_30_aver'
                },
                {
                  label: '每天均售',
                  key: 'day_60_aver',
                  calc_show: (item) => (item.use_stock != true)
                }, 
                {
                  label: '每天均售',
                  key: 'day_90_aver',
                  calc_show: (item) => (item.use_stock != true)
                }
              ]
              ]
            },
            

             {
              label: '美南仓', isShow: true, key: 'product_forecast_info.ussc_dict', minWidth: 400, type: 'row_many', calc_count: (item) => { if (item.area_calc) { return 3 } },
              column: 3, map: [
                [
                  { key: 'area_7', label: '7天售出' },
                  { key: 'area_14', label: '14天售出' },
                  { key: 'area_30', label: '30天售出' },
                  { key: 'area_signal_rate', label: '每天均售' },
                ],
                [
                  { key: 'area_inventory', label: '在库' },
                  { key: 'area_wait', label: '在途' },
                  { key: "area_all", label: '全部可用' },
                  // {key:'area_half', label:'补货(半个月)',calc_show:(item)=>(item.area_calc==true)},

                  { key: 'area_info', label: '备注', calc_show: (item) => (item.area_calc == false) },
                ],
                [
                  { key: 'area_inventory_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_wait_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_all_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_month', blod: true, style: "font-weight: bold;", label: '建议补货', calc_show: (item) => (item.area_calc == true) },
                ]
              ]
            },

            {
              label: '美东仓', isShow: true, key: 'product_forecast_info.usea_dict', minWidth: 400, type: 'row_many', calc_count: (item) => { if (item.area_calc) { return 3 } },
              column: 3, map: [
                [
                  { key: 'area_7', label: '7天售出' },
                  { key: 'area_14', label: '14天售出' },
                  { key: 'area_30', label: '30天售出' },
                  { key: 'area_signal_rate', label: '每天均售' },
                ],
                [
                  { key: 'area_inventory', label: '在库' },
                  { key: 'area_wait', label: '在途' },
                  { key: "area_all", label: '全部可用' },
                  // {key:'area_half', label:'补货(半个月)',calc_show:(item)=>(item.area_calc==true)},
                  { key: 'area_info', label: '备注', calc_show: (item) => (item.area_calc == false) },
                ],
                [
                  { key: 'area_inventory_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_wait_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_all_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_month', style: "font-weight: bold;", label: '建议补货', calc_show: (item) => (item.area_calc == true) },
                ]
              ]
            },

            {
              label: '美西仓', isShow: true, key: 'product_forecast_info.uswe_dict', minWidth: 400, type: 'row_many', calc_count: (item) => { if (item.area_calc) { return 3 } },
              column: 3, map: [
                [
                  { key: 'area_7', label: '7天售出' },
                  { key: 'area_14', label: '14天售出' },
                  { key: 'area_30', label: '30天售出' },
                  { key: 'area_signal_rate', label: '每天均售' },
                ],
                [
                  { key: 'area_inventory', label: '在库' },
                  { key: 'area_wait', label: '在途' },
                  { key: "area_all", label: '全部可用' },
                  // {key:'area_half', label:'补货(半个月)',calc_show:(item)=>(item.area_calc==true)},
                  { key: 'area_info', label: '备注', calc_show: (item) => (item.area_calc == false) },
                ],
                [
                  { key: 'area_inventory_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_wait_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_all_sell', label: '可售天数', calc_show: (item) => (item.area_calc == true) },
                  { key: 'area_month', style: "font-weight: bold;", label: '建议补货', calc_show: (item) => (item.area_calc == true) },
                ]
              ]
            },


            // { label: '期望单价', key: 'expect_price', isShow: true, type:'text'},
            // { label: '期望预算', key: 'expect_price', isShow: true, type:'text',calc_column:row=>{return row.expect_price? row.expect_price*row.product_forecast_info.need_count:''}},


            {label: '建议补货数量', key: 'need_count',  isShow: true, type:'number', showChoose:"product_forecast_info.need_count"},
            {label: '当前补货数量', key: 'push_qty',  isShow: true, type:'number', showChoose:"product_forecast_info.need_count",calc_column:row=>{return row.push_qty>0? row.push_qty:row.product_forecast_info.need_count}},

            // { label: '期望供应商', key: 'expect_company', isShow: true, type:'text'},
            { label: '系统创建时间', key: 'create_time', isShow: true, type:'date'},
            // { label: '销售审核时间', key: 'seller_time', isShow: true, type:'date'},
            // { label: '采购审核时间', key: 'oprater_time', isShow: true, type:'date'},
            { label: '拒绝理由', key: 'msg', isShow: true, type:'text'},
            { label: '是否删除', key: 'isDelete', isShow: false, type:'text'},
          ],
          btn: [
          {
              showVerfiy:{func:()=>(localStorage.getItem("user_type") == 'seller' || ['cmx'].includes(localStorage.getItem("userName"))) ? true : false},
              label: '修改',
              style: 'primary',
              ifDialog: true,
              dialogConfig: [
            {required: true, label: '主键 ID', key: 'id', isShow: false, type:'text'},
            {required: true, label: '易仓产品', key: 'product_sku', isShow: true, type:'text', disabled: true},

            {required: true, label: '状态', key: 'status', isShow: true, type:'select', disabled: true,
               data: [
                { name: '采购已下单', value: 0 },
                { name: '待销售审核', value: 1 },
                { name: '待采购审核', value: 2 },
                { name: '销售拒绝', value: 3 },
                { name: '采购拒绝', value: 4 }
            ]},
            {required: true, label: '建议补货数量', key: 'need_count',  isShow: true, type:'number', disabled: true},
            {required: true, label: '当前补货数量', key: 'push_qty',  isShow: true, type:'number', isShow: false},
            {required: true, label: '美东补货数量', key: 'usea',  isShow: true, type:'number'},
            {required: true, label: '美西补货数量', key: 'uswe',  isShow: true, type:'number'},
            {required: true, label: '美南补货数量', key: 'ussc',  isShow: true, type:'number'},
            {required: false, label: '是否通过审核', key: 'ifPass', isShow: true, type:'select',  default: null,
                  foreign_show:[
                   {
                      target_key:'msg',
                      type:"this",
                      params_keys:["ifPass"],
                      required: true,
                      check:(value)=>{return value==3}
                    }
                  ],
               data: [
                { name: '通过', value: 2 },
                { name: '拒绝', value: 3 },

            ]},
            {required: false, label: '拒绝理由', key: 'msg', isShow: false, type:'text'},
              ],
              url: {
                method: 'post',
                api: '/ReStock/update',
                path: []
              }
            },

            {
              showVerfiy:{func:()=>(localStorage.getItem("user_type") == 'seller' || ['cmx'].includes(localStorage.getItem("userName"))) ? true : false},
              label: '同意',
              style: 'success',
              url: {
                method: 'get',
                api: '/ReStock/pass',
                path: [{
                  index: 1,
                  key: 'id',
                  required: true
                },
                {
                  index: 2,
                  key: 'usea',
                  required: true
                },
                {
                  index: 3,
                  key: 'uswe',
                  required: true
                },
                {
                  index: 4,
                  key: 'ussc',
                  required: true
                },
                
              ]
              }
            },

            {
              showVerfiy:{func:()=>(localStorage.getItem("user_type") == 'seller' || ['cmx'].includes(localStorage.getItem("userName"))) ? true : false},
              label: '拒绝',
              style: 'danger',
              ifDialog: true,
              dialogConfig:[
                {required: true, label: '主键 ID', key: 'id', isShow: false, type:'text', disabled: true},
                {required: true, label: '易仓产品', key: 'product_sku', isShow: true, type:'text', disabled: true},
                {required: true, label: '补货数量', key: 'push_qty', isShow: true, type:'text', disabled: true},
                {required: true, label: '拒绝理由', key: 'msg', isShow: true, type:'textarea', max:100, autosize:{ minRows: 3, maxRows: 6 }  }
              ],
              url: {
                method: 'post',
                api: '/ReStock/refuse',
                path: [
              ]
              }
            }
          ],
        },
        url: {
          method: 'get',
          api: '/ReStock/query',
          pageSize: 20,
          params: [
            { key: "status", value: 1 },
          ]
        }
      },
    },

    // 销售拒绝
    {
      name:'ReStock',
      tableName: 'ReStock_3',
      data: {
        TopConfig: {
          data: [

            {
              default: '',
              required: false,
              type: 'text',
              key: 'product_sku',
              placeholder: '请输入易仓产品',
            },
            {
              default: '请选择销售人员',
              required: false,
              type: 'select',
              // data:[
              //   {value:'cmx3', name:'3'},
              //   {value:'cmx2', name:'2'},
              //   {value:'cmx1', name:'1'},
              // ],
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  key: 'user_id'
                }
              },
              key: 'person_seller_id',
              placeholder: '请选择销售人员',
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/ReStock/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            // {
            //   isShow: true,
            //   label: '添加',
            //   style: 'success',
            //   ifDialog: true,
            //   url: {
            //     method: 'get',
            //     api: '/ReStock/add'
            //   },
            //   dialogConfig:[
            // {required: true, label: '主键 ID', key: 'id', isShow: false, type:'text'},
            // {required: true, label: '易仓产品', key: 'product_sku', isShow: true, type:'text'},
            // {required: true, label: '易仓产品名称', key: 'product_forecast_infoproduct_sku_name', isShow: true, type:'text'},
            // {required: true, label: '销售人id', key: 'person_seller_id', isShow: false, type:'text'},
            // {required: true, label: '选品人id', key: 'person_develop_id', isShow: false, type:'text'},
            // {required: true, label: '', key: 'status', isShow: true, type:'text'},
            // {required: true, label: '期望价格', key: 'expect_price', isShow: true, type:'text'},
            // {required: true, label: '期望供应商', key: 'expect_company', isShow: true, type:'text'},
            // {required: true, label: '销售推送补货数量', key: 'push_qty', isShow: true, type:'text'},
            // {required: true, label: '采购下载时的补货数量', key: 'last_qty', isShow: true, type:'text'},
            // {required: true, label: '系统创建时间', key: 'create_time', isShow: true, type:'date'},
            // {required: true, label: '销售审核时间', key: 'seller_time', isShow: true, type:'date'},
            // {required: true, label: '采购审核时间', key: 'oprater_time', isShow: true, type:'date'},
            // {required: true, label: '拒绝理由', key: 'msg', isShow: true, type:'text'},
            // {required: true, label: '是否删除', key: 'isDelete', isShow: false, type:'text'},
            //   ]
            // },
            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/ReStock/export/excel'
              }
            },
            {
              isShow: ()=>(localStorage.getItem("user_type") == 'seller' || ['cmx'].includes(localStorage.getItem("userName"))) ? true : false,
              label: '批量同意',
              style: 'warning',
              use_filter: true,
              refrush_table: true,
              use_select_item:{
                map:{
                  key:'ids',
                  value:['id', 'need_count', 'push_qty']
                }
              },
              url: {
                method: 'post',
                api: '/ReStock/update/2'
              }
            },
            // {
            //   isShow: true,
            //   label: '批量拒绝',
            //   style: 'danger',
            //   use_filter: true,
            //   ifDialog: true,
            //   refrush_table: true,
            //   use_select_item:{
            //     map:{
            //       key:'ids',
            //       value:['id', "msg"]
            //     }
            //   },
            //   dialogConfig:[{required: true, label: '拒绝理由', key: 'msg', isShow: true, type:'textarea', max:100, autosize:{ minRows: 3, maxRows: 6 }  }],
            //   url: {
            //     method: 'post',
            //     api: '/ReStock/update/3'
            //   }
            // },
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          "select":true,
          column: [
            { label: '主键 ID', key: 'id', isShow: false, type:'text'},
            { label: '易仓产品', key: 'product_sku', isShow: true, type:'text'},
            { label: '易仓产品名称', key: 'product_forecast_info.product_title_cn', isShow: true, type:'text'},
             {
              label: '选品人', key: 'person_develop_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_develop_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_develop_id',
            },
            {
              label: '运营人', key: 'person_seller_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_seller_id',
            },
            { label: '状态', key: 'status', isShow: true, type:'select',
               data: [
                { name: '采购已下单', value: '0' },
                { name: '待销售审核', value: '1' },
                { name: '待采购审核', value: '2' },
                { name: '销售拒绝', value: '3' },
                { name: '采购拒绝', value: '4' }]
             },


             {
              label: '售出分析', key: 'product_forecast_info.sall_rate_info', minWidth: 350, isShow: true, type: 'row_many', column: 2, map: [
                [{
                  label: '7天售出',
                  key: 'day_7'
                }, {
                  label: '14天售出',
                  key: 'day_14'
                }, {
                  label: '30天售出',
                  key: 'day_30'
                },
                { key: 'msg', label: '备注', calc_show: (item) => (item.use_stock == true) },

                {
                  label: '60天售出',
                  key: 'day_60',
                  calc_show: (item) => (item.use_stock != true)
                }, {
                  label: '90天售出',
                  key: 'day_90',
                  calc_show: (item) => (item.use_stock != true)

                }],
                [{
                  label: '每天均售',
                  key: 'day_7_aver'
                },

                {
                  label: '每天均售',
                  key: 'day_14_aver'
                },

                {
                  label: '每天均售',
                  key: 'day_30_aver'
                },

                {
                  label: '每天均售',
                  key: 'day_60_aver',
                  calc_show: (item) => (item.use_stock != true)
                }, {
                  label: '每天均售',
                  key: 'day_90_aver',
                  calc_show: (item) => (item.use_stock != true)
                }]
              ]
            },


            // { label: '期望单价', key: 'expect_price', isShow: true, type:'text'},
            // { label: '期望预算', key: 'expect_price', isShow: true, type:'text',calc_column:row=>{return row.expect_price? row.expect_price*row.product_forecast_info.need_count:''}},


            {label: '建议补货数量', key: 'need_count',  isShow: true, type:'number', showChoose:"product_forecast_info.need_count"},
            {label: '当前补货数量', key: 'push_qty',  isShow: true, type:'number', showChoose:"product_forecast_info.need_count",calc_column:row=>{return row.push_qty>0? row.push_qty:row.product_forecast_info.need_count}},

            // { label: '期望供应商', key: 'expect_company', isShow: true, type:'text'},
            { label: '系统创建时间', key: 'create_time', isShow: true, type:'date'},
            { label: '销售审核时间', key: 'seller_time', isShow: true, type:'date'},
            // { label: '采购审核时间', key: 'oprater_time', isShow: true, type:'date'},
            { label: '拒绝理由', key: 'msg', isShow: true, type:'text'},
            { label: '是否删除', key: 'isDelete', isShow: false, type:'text'},
          ],
          btn: [
            {
              showVerfiy:{func:()=>(localStorage.getItem("user_type") == 'seller' || ['cmx'].includes(localStorage.getItem("userName"))) ? true : false},
              label: '修改',
              style: 'primary',
              ifDialog: true,
              dialogConfig: [
            {required: true, label: '主键 ID', key: 'id', isShow: false, type:'text'},
            {required: true, label: '易仓产品', key: 'product_sku', isShow: true, type:'text', disabled: true},

            {required: true, label: '状态', key: 'status', isShow: true, type:'select', disabled: true,
               data: [
                { name: '采购已下单', value: 0 },
                { name: '待销售审核', value: 1 },
                { name: '待采购审核', value: 2 },
                { name: '销售拒绝', value: 3 },
                { name: '采购拒绝', value: 4 }
            ]},
            {required: true, label: '建议补货数量', key: 'need_count',  isShow: true, type:'number', disabled: true},
            {required: true, label: '当前补货数量', key: 'push_qty',  isShow: true, type:'number', isShow: false},
            {required: true, label: '美东补货数量', key: 'usea',  isShow: true, type:'number'},
            {required: true, label: '美西补货数量', key: 'uswe',  isShow: true, type:'number'},
            {required: true, label: '美南补货数量', key: 'ussc',  isShow: true, type:'number'},
            {required: false, label: '是否通过审核', key: 'ifPass', isShow: true, type:'select',  default: null,
                  foreign_show:[
                   {
                      target_key:'msg',
                      type:"this",
                      params_keys:["ifPass"],
                      required: true,
                      check:(value)=>{return value==3}
                    }
                  ],
               data: [
                { name: '通过', value: 2 },
                { name: '拒绝', value: 3 },

            ]},
            {required: false, label: '拒绝理由', key: 'msg', isShow: false, type:'text'},
              ],
              url: {
                method: 'post',
                api: '/ReStock/update',
                path: []
              }
            },

            {
              showVerfiy:{func:()=>(localStorage.getItem("user_type") == 'seller' || ['cmx'].includes(localStorage.getItem("userName"))) ? true : false},
              label: '同意',
              style: 'success',
              url: {
                method: 'get',
                api: '/ReStock/pass',
                path: [{
                  index: 1,
                  key: 'id',
                  required: true
                },
                {
                  index: 2,
                  key: 'usea',
                  required: true
                },
                {
                  index: 3,
                  key: 'uswe',
                  required: true
                },
                {
                  index: 4,
                  key: 'ussc',
                  required: true
                },
                
              ]
              }
            },

            // {
            //   label: '删除',
            //   style: 'danger',
            //   url: {
            //     method: 'get',
            //     api: '/ReStock/delete',
            //     path: [{
            //       index: 1,
            //       key: 'id',
            //       required: true
            //     }]
            //   }
            // }
          ],
        },
        url: {
          method: 'get',
          api: '/ReStock/query',
          pageSize: 20,
          params: [
            { key: "status", value: 3 },
          ]
        }
      },
    },


    // 待下单补货单
    {
      name:'ReStock',
      tableName: 'ReStock_2',
      data: {
        TopConfig: {
          data: [

            {
              default: '',
              required: false,
              type: 'text',
              key: 'product_sku',
              placeholder: '请输入易仓产品',
            },
            {
              default: '请选择销售人员',
              required: false,
              type: 'select',
              // data:[
              //   {value:'cmx3', name:'3'},
              //   {value:'cmx2', name:'2'},
              //   {value:'cmx1', name:'1'},
              // ],
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  key: 'user_id'
                }
              },
              key: 'person_seller_id',
              placeholder: '请选择销售人员',
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/ReStock/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            // {
            //   isShow: true,
            //   label: '添加',
            //   style: 'success',
            //   ifDialog: true,
            //   url: {
            //     method: 'get',
            //     api: '/ReStock/add'
            //   },
            //   dialogConfig:[
            // {required: true, label: '主键 ID', key: 'id', isShow: false, type:'text'},
            // {required: true, label: '易仓产品', key: 'product_sku', isShow: true, type:'text'},
            // {required: true, label: '易仓产品名称', key: 'product_forecast_infoproduct_sku_name', isShow: true, type:'text'},
            // {required: true, label: '销售人id', key: 'person_seller_id', isShow: false, type:'text'},
            // {required: true, label: '选品人id', key: 'person_develop_id', isShow: false, type:'text'},
            // {required: true, label: '', key: 'status', isShow: true, type:'text'},
            // {required: true, label: '期望价格', key: 'expect_price', isShow: true, type:'text'},
            // {required: true, label: '期望供应商', key: 'expect_company', isShow: true, type:'text'},
            // {required: true, label: '销售推送补货数量', key: 'push_qty', isShow: true, type:'text'},
            // {required: true, label: '采购下载时的补货数量', key: 'last_qty', isShow: true, type:'text'},
            // {required: true, label: '系统创建时间', key: 'create_time', isShow: true, type:'date'},
            // {required: true, label: '销售审核时间', key: 'seller_time', isShow: true, type:'date'},
            // {required: true, label: '采购审核时间', key: 'oprater_time', isShow: true, type:'date'},
            // {required: true, label: '拒绝理由', key: 'msg', isShow: true, type:'text'},
            // {required: true, label: '是否删除', key: 'isDelete', isShow: false, type:'text'},
            //   ]
            // },
            {
              isShow: ()=>(localStorage.getItem("user_type") == 'operator' || ['cmx'].includes(localStorage.getItem("userName"))) ? true : false,
              label: '导出',
              style: 'success',
              use_filter: true,
              refrush_table: true,
              download: true,
              url: {
                method: 'get',
                api: '/ReStock/export/excel'
              }
            },
            // {
            //   isShow: true,
            //   label: '批量同意',
            //   style: 'warning',
            //   use_filter: true,
            //   refrush_table: true,
            //   use_select_item:{
            //     map:{
            //       key:'ids',
            //       value:['id']
            //     }
            //   },
            //   url: {
            //     method: 'post',
            //     api: '/ReStock/update/0'
            //   }
            // },
            // {
            //   isShow: true,
            //   label: '批量拒绝',
            //   style: 'danger',
            //   use_filter: true,
            //   ifDialog: true,
            //   refrush_table: true,
            //   use_select_item:{
            //     map:{
            //       key:'ids',
            //       value:['id', "msg"]
            //     }
            //   },
            //   dialogConfig:[{required: true, label: '拒绝理由', key: 'msg', isShow: true, type:'textarea', max:100, autosize:{ minRows: 3, maxRows: 6 }  }],
            //   url: {
            //     method: 'post',
            //     api: '/ReStock/update/4'
            //   }
            // },
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          "select":true,
          column: [
            { label: '主键 ID', key: 'id', isShow: false, type:'text'},
            { label: '易仓产品', key: 'product_sku', isShow: true, type:'text'},
            { label: '易仓产品名称', key: 'product_forecast_info.product_title_cn', isShow: true, type:'text'},
             {
              label: '选品人', key: 'person_develop_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_develop_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_develop_id',
            },
            {
              label: '运营人', key: 'person_seller_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_seller_id',
            },
            { label: '状态', key: 'status', isShow: true, type:'select',
               data: [
                { name: '采购已下单', value: '0' },
                { name: '待销售审核', value: '1' },
                { name: '待采购审核', value: '2' },
                { name: '销售拒绝', value: '3' },
                { name: '采购拒绝', value: '4' }]
             },


            //  {
            //   label: '售出分析', key: 'product_forecast_info.sall_rate_info', minWidth: 350, isShow: true, type: 'row_many', column: 2, map: [
            //     [{
            //       label: '7天售出',
            //       key: 'day_7'
            //     }, {
            //       label: '14天售出',
            //       key: 'day_14'
            //     }, {
            //       label: '30天售出',
            //       key: 'day_30'
            //     },
            //     { key: 'msg', label: '备注', calc_show: (item) => (item.use_stock == true) },

            //     {
            //       label: '60天售出',
            //       key: 'day_60',
            //       calc_show: (item) => (item.use_stock != true)
            //     }, {
            //       label: '90天售出',
            //       key: 'day_90',
            //       calc_show: (item) => (item.use_stock != true)

            //     }],
            //     [{
            //       label: '每天均售',
            //       key: 'day_7_aver'
            //     },

            //     {
            //       label: '每天均售',
            //       key: 'day_14_aver'
            //     },

            //     {
            //       label: '每天均售',
            //       key: 'day_30_aver'
            //     },

            //     {
            //       label: '每天均售',
            //       key: 'day_60_aver',
            //       calc_show: (item) => (item.use_stock != true)
            //     }, {
            //       label: '每天均售',
            //       key: 'day_90_aver',
            //       calc_show: (item) => (item.use_stock != true)
            //     }]
            //   ]
            // },


            { label: '期望单价', key: 'expect_price', isShow: true, type:'text'},
            { label: '期望预算', key: 'expect_price', isShow: true, type:'text',calc_column:row=>{return row.expect_price? row.expect_price*row.product_forecast_info.need_count:''}},


            // {label: '建议补货数量', key: 'need_count',  isShow: true, type:'number', showChoose:"product_forecast_info.need_count"},
            {label: '补货数量', key: 'push_qty',  isShow: true, type:'number', showChoose:"product_forecast_info.need_count",calc_column:row=>{return row.push_qty>0? row.push_qty:row.product_forecast_info.need_count}},

            { label: '期望供应商', key: 'expect_company', isShow: true, type:'text'},
            { label: '系统创建时间', key: 'create_time', isShow: true, type:'date'},
            { label: '销售审核时间', key: 'seller_time', isShow: true, type:'date'},
            // { label: '采购审核时间', key: 'oprater_time', isShow: true, type:'date'},
            { label: '拒绝理由', key: 'msg', isShow: true, type:'text'},
            { label: '是否删除', key: 'isDelete', isShow: false, type:'text'},
          ],
          btn: [
          // {
          //     label: '修改',
          //     style: 'primary',
          //     ifDialog: true,
          //     dialogConfig: [
          //   {required: true, label: '主键 ID', key: 'id', isShow: false, type:'text'},
          //   {required: true, label: '易仓产品', key: 'product_sku', isShow: true, type:'text', disabled: true},

          //   {required: true, label: '状态', key: 'status', isShow: true, type:'select', disabled: true,
          //      data: [
          //       { name: '采购已下单', value: 0 },
          //       { name: '待销售审核', value: 1 },
          //       { name: '待采购审核', value: 2 },
          //       { name: '销售拒绝', value: 3 },
          //       { name: '采购拒绝', value: 4 }
          //   ]},
          //   {required: true, label: '建议补货数量', key: 'need_count',  isShow: true, type:'number', disabled: true},
          //   {required: true, label: '当前补货数量', key: 'push_qty',  isShow: true, type:'number'},
          //   {required: false, label: '是否通过审核', key: 'ifPass', isShow: true, type:'select',  default: null,
          //         foreign_show:[
          //          {
          //             target_key:'msg',
          //             type:"this",
          //             params_keys:["ifPass"],
          //             required: true,
          //             check:(value)=>{return value==2}
          //           }
          //         ],
          //      data: [
          //       { name: '通过', value: 2 },
          //       { name: '拒绝', value: 3 },

          //   ]},
          //   {required: false, label: '拒绝理由', key: 'msg', isShow: false, type:'text'},
          //     ],
          //     url: {
          //       method: 'post',
          //       api: '/ReStock/update',
          //       path: []
          //     }
          //   },
          //   {
          //     label: '删除',
          //     style: 'danger',
          //     url: {
          //       method: 'get',
          //       api: '/ReStock/delete',
          //       path: [{
          //         index: 1,
          //         key: 'id',
          //         required: true
          //       }]
          //     }
          //   }
          ],
        },
        url: {
          method: 'get',
          api: '/ReStock/query',
          pageSize: 20,
          params: [
            { key: "status", value: 2 },
          ]
        }
      },
    },

    // 已下单补货单
    {
      name:'ReStock',
      tableName: 'ReStock_0',
      data: {
        TopConfig: {
          data: [

            {
              default: '',
              required: false,
              type: 'text',
              key: 'product_sku',
              placeholder: '请输入易仓产品',
            },
            {
              default: '请选择销售人员',
              required: false,
              type: 'select',
              // data:[
              //   {value:'cmx3', name:'3'},
              //   {value:'cmx2', name:'2'},
              //   {value:'cmx1', name:'1'},
              // ],
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  key: 'user_id'
                }
              },
              key: 'person_seller_id',
              placeholder: '请选择销售人员',
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/ReStock/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            // {
            //   isShow: true,
            //   label: '添加',
            //   style: 'success',
            //   ifDialog: true,
            //   url: {
            //     method: 'get',
            //     api: '/ReStock/add'
            //   },
            //   dialogConfig:[
            // {required: true, label: '主键 ID', key: 'id', isShow: false, type:'text'},
            // {required: true, label: '易仓产品', key: 'product_sku', isShow: true, type:'text'},
            // {required: true, label: '易仓产品名称', key: 'product_forecast_infoproduct_sku_name', isShow: true, type:'text'},
            // {required: true, label: '销售人id', key: 'person_seller_id', isShow: false, type:'text'},
            // {required: true, label: '选品人id', key: 'person_develop_id', isShow: false, type:'text'},
            // {required: true, label: '', key: 'status', isShow: true, type:'text'},
            // {required: true, label: '期望价格', key: 'expect_price', isShow: true, type:'text'},
            // {required: true, label: '期望供应商', key: 'expect_company', isShow: true, type:'text'},
            // {required: true, label: '销售推送补货数量', key: 'push_qty', isShow: true, type:'text'},
            // {required: true, label: '采购下载时的补货数量', key: 'last_qty', isShow: true, type:'text'},
            // {required: true, label: '系统创建时间', key: 'create_time', isShow: true, type:'date'},
            // {required: true, label: '销售审核时间', key: 'seller_time', isShow: true, type:'date'},
            // {required: true, label: '采购审核时间', key: 'oprater_time', isShow: true, type:'date'},
            // {required: true, label: '拒绝理由', key: 'msg', isShow: true, type:'text'},
            // {required: true, label: '是否删除', key: 'isDelete', isShow: false, type:'text'},
            //   ]
            // },
            // {
            //   isShow: true,
            //   label: '导出',
            //   style: 'success',
            //   use_filter: true,
            //   download: true,
            //   url: {
            //     method: 'get',
            //     api: '/ReStock/export/excel'
            //   }
            // },
            // {
            //   isShow: true,
            //   label: '批量同意',
            //   style: 'warning',
            //   use_filter: true,
            //   refrush_table: true,
            //   use_select_item:{
            //     map:{
            //       key:'ids',
            //       value:['id']
            //     }
            //   },
            //   url: {
            //     method: 'post',
            //     api: '/ReStock/update/2'
            //   }
            // },
            // {
            //   isShow: true,
            //   label: '批量拒绝',
            //   style: 'danger',
            //   use_filter: true,
            //   ifDialog: true,
            //   refrush_table: true,
            //   use_select_item:{
            //     map:{
            //       key:'ids',
            //       value:['id', "msg"]
            //     }
            //   },
            //   dialogConfig:[{required: true, label: '拒绝理由', key: 'msg', isShow: true, type:'textarea', max:100, autosize:{ minRows: 3, maxRows: 6 }  }],
            //   url: {
            //     method: 'post',
            //     api: '/ReStock/update/3'
            //   }
            // },
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          "select":true,
          column: [
            { label: '主键 ID', key: 'id', isShow: false, type:'text'},
            { label: '易仓产品', key: 'product_sku', isShow: true, type:'text'},
            { label: '易仓产品名称', key: 'product_forecast_info.product_title_cn', isShow: true, type:'text'},
             {
              label: '选品人', key: 'person_develop_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_develop_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_develop_id',
            },
            {
              label: '运营人', key: 'person_seller_id',
              type: 'select',
              isShow: true,
              url: {
                api: '/SysUser/person_seller_id/all',
                method: 'get',
                map: {
                  value: 'user_name',
                  name: 'user_id'
                }
              },
              key: 'person_seller_id',
            },
            { label: '状态', key: 'status', isShow: true, type:'select',
               data: [
                { name: '采购已下单', value: '0' },
                { name: '待销售审核', value: '1' },
                { name: '待采购审核', value: '2' },
                { name: '销售拒绝', value: '3' },
                { name: '采购拒绝', value: '4' }]
             },


            //  {
            //   label: '售出分析', key: 'product_forecast_info.sall_rate_info', minWidth: 350, isShow: true, type: 'row_many', column: 2, map: [
            //     [{
            //       label: '7天售出',
            //       key: 'day_7'
            //     }, {
            //       label: '14天售出',
            //       key: 'day_14'
            //     }, {
            //       label: '30天售出',
            //       key: 'day_30'
            //     },
            //     { key: 'msg', label: '备注', calc_show: (item) => (item.use_stock == true) },

            //     {
            //       label: '60天售出',
            //       key: 'day_60',
            //       calc_show: (item) => (item.use_stock != true)
            //     }, {
            //       label: '90天售出',
            //       key: 'day_90',
            //       calc_show: (item) => (item.use_stock != true)

            //     }],
            //     [{
            //       label: '每天均售',
            //       key: 'day_7_aver'
            //     },

            //     {
            //       label: '每天均售',
            //       key: 'day_14_aver'
            //     },

            //     {
            //       label: '每天均售',
            //       key: 'day_30_aver'
            //     },

            //     {
            //       label: '每天均售',
            //       key: 'day_60_aver',
            //       calc_show: (item) => (item.use_stock != true)
            //     }, {
            //       label: '每天均售',
            //       key: 'day_90_aver',
            //       calc_show: (item) => (item.use_stock != true)
            //     }]
            //   ]
            // },


            { label: '期望单价', key: 'expect_price', isShow: true, type:'text'},
            { label: '期望预算', key: 'expect_price', isShow: true, type:'text',calc_column:row=>{return row.expect_price? row.expect_price*row.product_forecast_info.need_count:''}},


            // {label: '建议补货数量', key: 'need_count',  isShow: true, type:'number', showChoose:"product_forecast_info.need_count"},
            {label: '补货数量', key: 'push_qty',  isShow: true, type:'number', showChoose:"product_forecast_info.need_count",calc_column:row=>{return row.push_qty>0? row.push_qty:row.product_forecast_info.need_count}},

            { label: '期望供应商', key: 'expect_company', isShow: true, type:'text'},
            { label: '系统创建时间', key: 'create_time', isShow: true, type:'date'},
            { label: '销售审核时间', key: 'seller_time', isShow: true, type:'date'},
            { label: '采购审核时间', key: 'oprater_time', isShow: true, type:'date'},
            // { label: '拒绝理由', key: 'msg', isShow: true, type:'text'},
            { label: '是否删除', key: 'isDelete', isShow: false, type:'text'},
          ],
          btn: [
          // {
          //     label: '修改',
          //     style: 'primary',
          //     ifDialog: true,
          //     dialogConfig: [
          //   {required: true, label: '主键 ID', key: 'id', isShow: false, type:'text'},
          //   {required: true, label: '易仓产品', key: 'product_sku', isShow: true, type:'text', disabled: true},

          //   {required: true, label: '状态', key: 'status', isShow: true, type:'select', disabled: true,
          //      data: [
          //       { name: '采购已下单', value: 0 },
          //       { name: '待销售审核', value: 1 },
          //       { name: '待采购审核', value: 2 },
          //       { name: '销售拒绝', value: 3 },
          //       { name: '采购拒绝', value: 4 }
          //   ]},
          //   {required: true, label: '建议补货数量', key: 'need_count',  isShow: true, type:'number', disabled: true},
          //   {required: true, label: '当前补货数量', key: 'push_qty',  isShow: true, type:'number'},
          //   {required: false, label: '是否通过审核', key: 'ifPass', isShow: true, type:'select',  default: null,
          //         foreign_show:[
          //          {
          //             target_key:'msg',
          //             type:"this",
          //             params_keys:["ifPass"],
          //             required: true,
          //             check:(value)=>{return value==2}
          //           }
          //         ],
          //      data: [
          //       { name: '通过', value: 2 },
          //       { name: '拒绝', value: 3 },

          //   ]},
          //   {required: false, label: '拒绝理由', key: 'msg', isShow: false, type:'text'},
          //     ],
          //     url: {
          //       method: 'post',
          //       api: '/ReStock/update',
          //       path: []
          //     }
          //   },
            {
              label: '删除',
              style: 'danger',
              url: {
                method: 'get',
                api: '/ReStock/delete',
                path: [{
                  index: 1,
                  key: 'id',
                  required: true
                }]
              }
            }
          ],
        },
        url: {
          method: 'get',
          api: '/ReStock/query',
          pageSize: 20,
          params: [
            { key: "status", value: 0 },
          ]
        }
      },
    },





    {
      name: '易仓库存映射',
      tableName: 'WarehouseSkuMap',
      data: {
        TopConfig: {
          data: [

          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/WarehouseSkuMap/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/WarehouseSkuMap/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '主键 ID', key: 'id', isShow: false, type: 'text' },
            { label: '仓库代码(非sku代码)', key: 'warehouse_code', isShow: true, type: 'text' },
            { label: '谷仓的(三方仓的sku)', key: 'gc_product_sku', isShow: true, type: 'text' },
            { label: '易仓的仓库sku', key: 'product_sku', isShow: true, type: 'text' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/WarehouseSkuMap/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },
    {
      name: '易仓产品',
      tableName: 'YcProduct',
      data: {
        TopConfig: {
          data: [
            {
              default: '',
              required: false,
              type: 'text',
              key: 'product_sku',
              placeholder: '易仓产品sku',
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/YcProduct/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/YcProduct/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: 'None', key: 'id', isShow: false, type: 'text' },
            { label: '产品SKU代码', key: 'product_sku', isShow: true, type: 'text' },
            { label: '谷仓产品sku', key: 'gc_product_sku', isShow: true, type: 'text' },
            { label: '名称CN', key: 'product_title', isShow: true, type: 'text' },
            { label: '名称EN', key: 'product_title_en', isShow: true, type: 'text' },
            { label: '产品款式代码', key: 'product_spu', isShow: true, type: 'text' },
            { label: '申报价值', key: 'product_declared_value', isShow: true, type: 'text' },
            { label: '申报币种', key: 'pd_declare_currency_code', isShow: true, type: 'text' },
            { label: '重量(Kg)', key: 'product_weight', isShow: true, type: 'text' },
            { label: '净重(Kg)', key: 'product_net_weight', isShow: true, type: 'text' },
            { label: '默认供应商代码', key: 'default_supplier_code', isShow: true, type: 'text' },
            { label: '供应商品号', key: 'supplier_sku', isShow: true, type: 'text' },
            { label: '产品状态', key: 'product_status', isShow: true, type: 'text' },
            { label: '销售状态', key: 'sale_status', isShow: true, type: 'text' },
            { label: '是否质检', key: 'is_qc', isShow: true, type: 'text' },
            { label: '是否当前期', key: 'is_exp_date', isShow: true, type: 'text' },
            { label: '是否赠品', key: 'is_gift', isShow: true, type: 'text' },
            { label: '仓库条码', key: 'warehouse_barcode', isShow: true, type: 'text' },
            { label: '包装长度(CM)', key: 'product_length', isShow: true, type: 'text' },
            { label: '包装宽度(CM)', key: 'product_width', isShow: false, type: 'text' },
            { label: '包装高度(CM)', key: 'product_height', isShow: true, type: 'text' },
            { label: '设计师Id', key: 'designer_id', isShow: false, type: 'text' },
            { label: '采购负责人Id', key: 'person_oprater_id', isShow: false, type: 'text' },
            { label: '销售负责人Id', key: 'person_seller_id', isShow: false, type: 'text' },
            { label: '开发负责人Id', key: 'person_develop_id', isShow: false, type: 'text' },
            { label: '产品创建时间', key: 'product_add_time', isShow: true, type: 'date' },
            { label: '产品更新时间', key: 'product_update_time', isShow: true, type: 'date' },
            { label: '审核时间', key: 'ppn_release_date', isShow: true, type: 'date' },
            { label: '是否组合产品', key: 'is_combination', isShow: true, type: 'text' },
            { label: '产品颜色Id', key: 'product_colorId', isShow: true, type: 'text' },
            { label: '产品颜色', key: 'product_color_name', isShow: true, type: 'text' },
            { label: '产品颜色EN', key: 'product_color_name_en', isShow: true, type: 'text' },
            { label: '尺寸Id', key: 'product_size_id', isShow: false, type: 'text' },
            { label: '尺寸名称', key: 'product_size_name', isShow: true, type: 'text' },
            { label: '尺寸名称EN', key: 'product_size_name_en', isShow: true, type: 'text' },
            { label: '单位名称', key: 'pu_name', isShow: true, type: 'text' },
            { label: '组织机构ID', key: 'user_organization_id', isShow: false, type: 'text' },
            { label: '默认发货仓库ID', key: 'default_warehouse_id', isShow: false, type: 'text' },
            { label: 'EAN码', key: 'ean_code', isShow: true, type: 'text' },
            { label: '币种', key: 'currency_code', isShow: true, type: 'text' },
            { label: '供应商单价', key: 'sp_unit_price', isShow: true, type: 'text' },
            { label: '默认采购仓', key: 'defaul_buy_warehouse_id', isShow: false, type: 'text' },
            { label: '物流属性', key: 'logistic_attribute', isShow: true, type: 'text' },
            { label: '海关编码', key: 'hs_code', isShow: true, type: 'text' },
            { label: '参考链接', key: 'ref_url', isShow: true, type: 'text' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
            { label: '对应的谷仓sku数量', key: 'product_sku_qty', isShow: true, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/YcProduct/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },


     {
      name:'sku统计',
      tableName: 'TagStatistics',
      data: {
        TopConfig: {
          data: [
               {
                 required: false,
                 type: 'select',
                 default: 0,
                 placeholder: '标签名称',
                 data: [
                           { name: '全部', value: 0 },
                           { name: '清货待下架', value: 1 },
                           { name: '在线产品', value: 2 },
                           { name: '订制类产品', value: 5 },
                           { name: '平台下架', value: 6 },
                           { name: '新品', value: 7 },
                           { name: '强制淘汰', value: 16},
                           { name: '利润低淘汰', value: 17},
                           { name: '退货高淘汰', value: 18},

                 ],
                 key: 'strategy',
                 placeholder: '标签名称',
               },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/YcProduct/tag/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/YcProduct/tag/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: 'None', key: 'id', isShow: false, type:'text'},

            { label: '运营', key: 'user_name', isShow: true, type:'text'},
            { label: '在线产品', key: 'sale_status2', isShow: true, type:'text'},
            { label: '订制类产品', key: 'sale_status3', isShow: true, type:'text'},
            { label: '强制淘汰', key: 'sale_status6', isShow: true, type:'text'},
            { label: '利润低淘汰', key: 'sale_status7', isShow: true, type:'text'},
            { label: '清货待下架', key: 'sale_status1', isShow: true, type:'text'},
            { label: '平台下架', key: 'sale_status4', isShow: true, type:'text'},
            { label: '新品', key: 'sale_status5', isShow: true, type:'text'},
            { label: '退货高淘汰', key: 'sale_status8', isShow: true, type:'text'},

            ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/YcProduct/tag/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },
    {
      name: '滨州仓库存',
      tableName: 'YcReceivingOrderDetails',
      data: {
        TopConfig: {
          data: [
            {
              default: '',
              required: false,
              type: 'text',
              key: 'product_sku',
              placeholder: '请输入谷仓商品sku',
            },
          ],
          btn: [
            // 搜索按钮
            {
              isShow: true,
              label: '搜索',
              type: 'search',
              url: {
                method: 'get',
                api: '/YcReceivingOrderDetails/query',
                path: [
                  { key: 'page', index: 1, required: true },
                  { key: 'pagesize', index: 2, required: true }
                ],
                params: [
                ]
              }
            },

            {
              isShow: true,
              label: '导出',
              style: 'success',
              use_filter: true,
              download: true,
              url: {
                method: 'get',
                api: '/YcReceivingOrderDetails/export/excel'
              }
            }
          ]
        },


        // table 每个字段及其类型
        tableColumn: {
          column: [
            { label: '主键 ID', key: 'id', isShow: false, type: 'text' },
            { label: '易仓产品sku', key: 'product_sku', isShow: true, type: 'text' },
            { label: '宽度', key: 'product_width', isShow: false, type: 'text' },
            { label: '长度', key: 'product_length', isShow: true, type: 'text' },
            { label: '高度', key: 'product_height', isShow: true, type: 'text' },
            { label: '重量', key: 'product_weight', isShow: true, type: 'text' },
            { label: '采购在途', key: 'pi_purchase_onway_qty', isShow: true, type: 'text' },
            { label: '退件在途', key: 'pi_return_onway_qty', isShow: true, type: 'text' },
            { label: '待上架', key: 'pi_pending_qty', isShow: true, type: 'text' },
            { label: '待出库', key: 'pi_reserved_qty', isShow: true, type: 'text' },
            { label: '最后更新时间', key: 'pi_update_time', isShow: true, type: 'date' },
            { label: '实际可用(含待出库)', key: 'actual_usable_inventory_qty', isShow: true, type: 'text' },
            { label: '计划库存数量', key: 'pi_planned_qty', isShow: true, type: 'text' },
            { label: '采购库存数量', key: 'purchase_quantity', isShow: true, type: 'text' },
            { label: '是否删除', key: 'isDelete', isShow: false, type: 'text' },
          ],
          btn: [
          ],
        },
        url: {
          method: 'get',
          api: '/YcReceivingOrderDetails/query',
          pageSize: 20,
          params: [
          ]
        }
      },
    },

  ]
}
